groupSelectedUnits: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
(Added example from functions module)
Line 21: Line 21:




|x1= <code>(example)</code>|= EXAMPLE1  
|x1= <pre>{//after leaving menu deselect all units (command menu is not opened -> no selection)
    player groupSelectUnit [_x, false];
} forEach (groupSelectedUnits player);</pre>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 17:57, 2 September 2010

Hover & click on the images for description

Description

Description:
Returns selected groups in sgroup.
Groups:
Uncategorised

Syntax

Syntax:
groupSelectedUnits unit
Parameters:
unit: Object -
Return Value:
Array

Examples

Example 1:
{//after leaving menu deselect all units (command menu is not opened -> no selection)
    player groupSelectUnit [_x, false];
} forEach (groupSelectedUnits player);

Additional Information

See also:
See also needed

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

Notes

Bottom Section