allMissionObjects

From Bohemia Interactive Community
Jump to: navigation, search
Introduced in Arma 2: Operation Arrowhead version 1.57

Click on the images for descriptions

Introduced in

Game:
Arma 2: Operation Arrowhead
Version:
1.57

Description

Description:
Returns all mission objects with given type (or its subtype).

Syntax

Syntax:
allMissionObjects type
Parameters:
type: String
Return Value:
Array of Objects

Examples

Example 1:
_airObjects = allMissionObjects "Air";
Example 2:
{ deleteVehicle _x } forEach (allMissionObjects "");
Example 3:
_allMObjects = allMissionObjects "All";

Additional Information

Multiplayer:
-
See also:
allDead, allGroups, allUnits, entities, vehicles

Notes

Notes


Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Posted on June 22, 2012
Rocket
Be VERY careful with the use of this command. It is very demanding as it must iterate through all mission created objects. Particular care should be taken exercising this often on dedicated servers.
Posted on Decembere 15, 2013
Killzone_Kid
For some reason in Arma 3 this command is up to 5 times faster on the dedicated server than on a connected client. In my experiments it took on average 5 ms for the command to complete on a client while under 1 ms on the server.

Bottom Section