Arma 3 Scripting

allMissionObjects

  • Arma 3 v0.50
  • First in Arma 2: Operation Arrowhead v1.57

Command · Markdown · JSON · original wiki page

Description

Returns all objects of the given type that are currently present in the mission. In some cases, the entities and allObjects commands are much faster alternatives to this command.
Some of the special types that can be detected with this command (and with nearestObject):

Important

This command is quite performance heavy. Use with caution!

Syntax

allMissionObjects type

Parameters:

Returns: Array of Objects

Examples

Example 1

_airObjects = allMissionObjects "Air";

Example 2

{ deleteVehicle _x; } forEach (allMissionObjects "");

Example 3

_allMObjects = allMissionObjects "All";

Multiplayer

Note

This command is ~5 times faster on a dedicated server than on a client. Reason unknown.

See also

allObjects · allDead · allGroups · allUnits · entities · vehicles · allMines · allSimpleObjects