Kronzky
The returned array on MP clients is not updated when team members die (only when they are deleted). (Tested on VBS2)
Results appear below as you type; use the arrow keys to move through them.
Command · also in Object Detection · Markdown · JSON · original wiki page
Returns an array with all the units in the group or unit's group, or all units belonging to a certain side.
units type
Parameters:
Returns: Array of Objects - if type is a destroyed object, an empty array is returned
_myUnitCount = count units player;
_isInMyGroup = _soldier1 in units player;
private _unitsEast = units opfor;
// both methods are the same, the latter is preferred for performance reason
units group player; // [B Alpha 1-1:1 (R3vo), B Alpha 1-1:2, B Alpha 1-1:3, B Alpha 1-1:4, B Alpha 1-1:5, B Alpha 1-1:6, B Alpha 1-1:7, B Alpha 1-1:8]
units player; // [B Alpha 1-1:1 (R3vo), B Alpha 1-1:2, B Alpha 1-1:3, B Alpha 1-1:4, B Alpha 1-1:5, B Alpha 1-1:6, B Alpha 1-1:7, B Alpha 1-1:8]
group · allGroups · groups · allUnits · playableUnits · switchableUnits · vehicles
The returned array on MP clients is not updated when team members die (only when they are deleted). (Tested on VBS2)
Seems to always return a list with the same order as the leader's squad menu.