allUnits

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 2 version 1.001.00
Hover & click on the images for descriptions

Description

Description:
Return a list of all units (all persons except agents) outside and inside vehicles, 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

See also:
allPlayersallGroupsallDeadplayableUnitsswitchableUnitsunitsvehiclesallUnitsUAVallCuratorsplayersNumber

Notes

i
Only post proven facts here. Report bugs on the feedback tracker. Use the Talk page or the Forums for discussions.

Notes

Posted on September 6, 2018
Pierre MGI
It returns also BIS_SUPP_HQ created by support modules and headquarters Entity from HQ modules.

Bottom Section