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):
""- returns everything, e.g. agents, bees, mosquitoes, footprints, armed mines, ..."all"- more restrictive than"": no ambient insects, only agents such as rabbits and snakes, no footprints, tracks, no armed mines"#slop"- blood drops"#mark"- unit footprints"#track"- vehicle tracks"#crater"- explosion craters on the ground"#crateronvehicle"- bullet marks on vehicles"#explosion"- explosions"#objectdestructed"- building, tree or bush destruction"#soundonvehicle"- sounds created with say3D for example"#dynamicsound"- sound sources created using createSoundSource"EmptyDetector"- all Triggers"Logic"- all game logics
Important
This command is quite performance heavy. Use with caution!
Syntax
allMissionObjects type
Parameters:
type: String
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