groupSelectUnit: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:ArmA 2: New Scripting Commands List\|{{uc:{{PAGENAME}}}}\]\]\s*" to "") |
Lou Montana (talk | contribs) m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2") |
||
Line 48: | Line 48: | ||
<h3 style='display:none'>Bottom Section</h3> | <h3 style='display:none'>Bottom Section</h3> | ||
[[Category:Scripting Commands | [[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] |
Revision as of 11:46, 10 January 2020
Description
- Description:
- Selects a unit from player's group. If player is the leader, the effect of this command is similar to player pressing F1, F2, F3... buttons to highlight units in his squad, after which the unit command menu is shown. If leader is AI, player will get usual communication menu to interact with the leader.
- Groups:
- Uncategorised
Syntax
- Syntax:
- player groupSelectUnit [unit, select]
- Parameters:
- player: Object
- [unit, select]: Array
- unit: Object
- select: Boolean
- Return Value:
- Nothing
Examples
- Example 1:
- After leaving menu, deselect all units (command menu is not opened -> no selection)
{ player groupSelectUnit [_x, false]; } forEach (groupSelectedUnits player);
- Example 2:
- Select all units when player is the leader:
{ player groupSelectUnit [_x, true]; } forEach units player;
- Example 3:
- Open communication with group leader:
player groupSelectUnit [leader player, true];
Additional Information
- See also:
- groupSelectedUnits
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