groupSelectUnit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 29: Line 29:
|x3= Open communication with group leader:<code>[[player]] [[groupSelectUnit]] [<nowiki/>[[leader]] [[player]], [[true]]];</code>
|x3= Open communication with group leader:<code>[[player]] [[groupSelectUnit]] [<nowiki/>[[leader]] [[player]], [[true]]];</code>


| [[groupSelectedUnits]]
|seealso= [[groupSelectedUnits]]
}}
}}



Revision as of 00:49, 17 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Interaction

Syntax

Syntax:
Syntax needed
Parameters:
player: Object
[unit, select]: Array
unit: Object
select: Boolean
Return Value:
Return value needed

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