groupSelectUnit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(examples were the wrong way around)
Line 23: Line 23:




|x1= <pre>_selectedUnits = groupSelectedUnits player;</pre>|= 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 14:23, 18 August 2011

Hover & click on the images for description

Description

Description:
Select unit from unit's group.
Groups:
Uncategorised

Syntax

Syntax:
unitName groupSelectUnit [unit, booleanValue]
Parameters:
unitName: Object - desc
[unit, booleanValue]: Array
unit: Object - desc
booleanValue: Boolean - desc
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);

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