mp_addBuiltinPhysics(groupname,interval)

Description

Adds a new group of variables to be synced to this instance.

The variables are: * direction,gravity,gravity_direction,friction,hspeed,vspeed

Example

///Create Event
mp_sync();
mp_addBuiltinPhysics("physics",10*room_speed);

Arguments

Name type description
group name strin g The name of the group, this is only used locally to identify this group, for example if you want to use mp_setType
inter val real The interval in which the variable group get’s synced with the other players

Returns

Nothing