assignedTeam

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2: Operation Arrowhead version 1.60
  Arguments of this scripting command have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 2: Operation Arrowhead
Version:
1.60

Description

Description:
Returns the team the unit belongs to. Possible values:
  • MAIN (default and white)
  • RED
  • GREEN
  • BLUE
  • YELLOW
warning.png This command will return nil if given unit is objNull, remoteControling another unit or is not local

Syntax

Syntax:
assignedTeam unitName
Parameters:
unitName: Object
Return Value:
String or Nothing

Examples

Example 1:
_team = assignedTeam player;

Additional Information

Multiplayer:
-
See also:
assignTeam

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section

Posted on December 13, 2014 - 23:56 (UTC)
Commy2
As of Arma 3 version 1.36. assignedTeam might return nil instead of any of the STRINGs above if the player is currently remote controlling a unit. assignedTeam player ->
Posted on May 23, 2017 - 11:08 (UTC)
Will
Executed on server also nothing is returned... so arguments need to be local.