Commy2
Prior to Arma 3 v1.94 assignedTeam might return nil instead of any of the STRINGs above if the player is currently remote controlling a unit.
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Returns the team the unit belongs to. Possible values:
"MAIN" (default and white)"RED""GREEN""BLUE""YELLOW""" if given unit is objNull or remoteControlling another unitassignedTeam unitName
Parameters:
unitName: ObjectReturns: String (or, prior to Arma 3 v1.94, Nothing if given unit is objNull or remoteControlling another unit)
_team = assignedTeam player;
Prior to Arma 3 v1.94 assignedTeam might return nil instead of any of the STRINGs above if the player is currently remote controlling a unit.