Arma 3 Scripting

Command in Object Manipulation

assignedTeam

Also available as Markdown and JSON, or read the 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