{"name":"allSimpleObjects","operator":null,"title":"allSimpleObjects","type":"command","url":"https://community.bistudio.com/wiki/allSimpleObjects","revid":377075,"updated":"2026-01-01T09:37:55Z","groups":["Object Detection"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.68"}],"since":{"game":"arma3","name":"Arma 3","version":"1.68"},"arma3_since":"1.68","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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.\n\n> [!NOTE]\n> - There is no inheritance in simple objects, so only exact class match is allowed.\n> - *className* is not case sensitive.","syntaxes":[{"syntax":"allSimpleObjects classes","since":null,"effect":null,"exec":null,"params":[{"name":"classes","type":"Array of Strings","optional":false,"default":null,"description":"classnames array. Use `[]` to return all simple objects","types":["Array","String"],"since":null,"text":"classes: Array of Strings - classnames array. Use `[]` to return all simple objects"}],"returns":{"type":"Array of Objects","types":["Array","Object"],"description":"all simple objects","text":"Array of Objects - all simple objects"},"form":"unary","operator":null,"left":null,"right":{"text":"classes","types":["Array","String"]}}],"examples":[{"text":"```sqf\nprivate _boxesAndChairs = allSimpleObjects [\"Box_NATO_Equip_F\", \"Land_CampingChair_V2_F\"];\n```","code":["private _boxesAndChairs = allSimpleObjects [\"Box_NATO_Equip_F\", \"Land_CampingChair_V2_F\"];"]},{"text":"```sqf\nprivate _allSimpleObjects = allSimpleObjects [];\n```","code":["private _allSimpleObjects = allSimpleObjects [];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["createSimpleObject","isSimpleObject","nearestObjects","nearObjectsReady","nearObjects","nearestObject","createVehicle"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Detection","Introduced with Arma 3 version 1.68","Scripting Commands"]}