{"name":"attachedObjects","title":"attachedObjects","type":"command","url":"https://community.bistudio.com/wiki/attachedObjects","revid":369106,"updated":"2024-09-03T10:27:01Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"1.14"},"since":"arma3 1.14","arma3_since":"1.14","description":"Returns a list of objects attached to the given object.","syntaxes":[{"syntax":"attachedObjects obj","params":[{"name":"obj","type":"Object","description":"given object","type_expr":"Object"}],"returns":{"type":"Array of Objects","type_expr":"Array<Object>","description":"attached to the given object","text":"Array of Objects attached to the given object"},"form":"unary","right":{"text":"obj"}}],"examples":[{"code":["{ detach _x } forEach attachedObjects player;"]},{"text":"```sqf\nif (count attachedObjects player == 0) then\n{\n    hint \"There are no objects attached to player\";\n};\n```","code":["if (count attachedObjects player == 0) then\n{\n\thint \"There are no objects attached to player\";\n};"]}],"see_also":["attachObject","attachTo","attachedTo","waypointAttachVehicle","waypointAttachedVehicle","lightAttachObject","triggerAttachVehicle","attachedObject","detach"]}