Description
Returns the team the unit belongs to. Possible values:
"MAIN"(default and white)"RED""GREEN""BLUE""YELLOW"- Arma 3 v1.94
""if given unit is objNull or remoteControlling another unit
Syntax
assignedTeam unitName
Parameters:
unitName: Object
Returns: String (or, prior to Arma 3 v1.94, Nothing if given unit is objNull or remoteControlling another unit)
Examples
Example 1
_team = assignedTeam player;