Arma 3 Scripting

Command in Object Detection

allSimpleObjects

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns array of all simple objects that belong to the listed class names. If the array of types is empty [], all simple objects are returned including those without class name.

Note

  • There is no inheritance in simple objects, so only exact class match is allowed.
  • className is not case sensitive.

Syntax

allSimpleObjects classes

Parameters:

Returns: Array of Objects - all simple objects

Examples

Example 1

private _boxesAndChairs = allSimpleObjects ["Box_NATO_Equip_F", "Land_CampingChair_V2_F"];

Example 2

private _allSimpleObjects = allSimpleObjects [];

See also

createSimpleObject · isSimpleObject · nearestObjects · nearObjectsReady · nearObjects · nearestObject · createVehicle