allUnits

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Return a list of all units (all persons except agents) created on the following sides east, west, resistance/independent and civilian only. Does not contain units of sideLogic. Dead units and units awaiting for respawn are also excluded.

Syntax

Syntax:
allUnits
Return Value:
Array

Examples

Example 1:
{_x setDamage 0.5; _x groupChat "Braaains"} forEach allUnits;

Additional Information

Multiplayer:
-
See also:
allPlayersallGroupsallDeadplayableUnitsswitchableUnitsunitsvehiclesallUnitsUAVallCurators

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Posted on July 15, 2011
kju
It returns infantry outside and inside vehicles.

Bottom Section