Arma 3 Scripting

assignedTeam

  • Global argument
  • Arma 3 v0.50
  • First in Arma 2: Operation Arrowhead v1.60

Command · Markdown · JSON · original wiki page

Description

Returns the team the unit belongs to. Possible values:

Syntax

assignedTeam unitName

Parameters:

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;

See also

assignTeam

Community notes

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.