assignedTeam: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "Category:Arma 2: Operation Arrowhead: New Scripting Commands List" to "Category:Arma 2: Operation Arrowhead: New Scripting Commands") |
m (Text replacement - "v1\.93\.[0-9]{6}" to "v1.94") |
||
Line 16: | Line 16: | ||
* <tt>"BLUE"</tt> | * <tt>"BLUE"</tt> | ||
* <tt>"YELLOW"</tt> | * <tt>"YELLOW"</tt> | ||
* <tt>""</tt> if given unit is [[objNull]] or [[remoteControl]]ing another unit(Since Arma 3 v1. | * <tt>""</tt> if given unit is [[objNull]] or [[remoteControl]]ing another unit(Since Arma 3 v1.94) | ||
| '''assignedTeam''' unitName | | '''assignedTeam''' unitName | ||
Line 22: | Line 22: | ||
|p1= unitName: [[Object]] | |p1= unitName: [[Object]] | ||
| [[String]] (or, prior to Arma 3 v1. | | [[String]] (or, prior to Arma 3 v1.94, [[Nothing]] if given unit is [[objNull]] or [[remoteControl]]ing another unit) | ||
|x1= <code>_team <nowiki>=</nowiki> '''assignedTeam''' [[player]];</code> | |x1= <code>_team <nowiki>=</nowiki> '''assignedTeam''' [[player]];</code> | ||
Line 42: | Line 42: | ||
<dd class="note"> | <dd class="note"> | ||
'''Prior to Arma 3 v1. | '''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. | ||
<code>[[assignedTeam]] [[player]] | <code>[[assignedTeam]] [[player]] |
Revision as of 10:21, 3 April 2021
Description
- Description:
- Description needed
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- unitName: Object
- Return Value:
- Return value needed
Examples
- Example 1:
_team = assignedTeam player;
Additional Information
- See also:
- assignTeam
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on December 13, 2014 - 23:56 (UTC)
- 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.
assignedTeam player ->