Set player team

Sets the team for the specified player.

Syntax
set_player_team( player, value );

Returns
N/A

Examples
//attack_update.gml // changes teams at the beginning of your taunt: if (attack == AT_TAUNT && window == 1 && window_timer == 1) { if (get_player_team( player ) == 1) { set_player_team( player, 2 ); } else { set_player_team( player, 1 ); } }