get_synced_var

Returns the persistent global variable of that player slot.

ArgumentTypeDescription
player:realID of the player to get the synced variable of

Example, called from init.gml:

// This character gets a slower dash speed and higher jump if something has changed its synced variable to 1 before the match starts, likely as a custom menu option:
if (get_synced_var( player ) == 1) {
dash_speed -= 2;
jump_speed += 3;
}