{"name":"attachedTo","title":"attachedTo","type":"command","url":"https://community.bistudio.com/wiki/attachedTo","revid":369107,"updated":"2024-09-03T10:27:31Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"1.14"},"since":"arma3 1.14","arma3_since":"1.14","locality":{"argument":"global"},"description":"Returns object the given object is attached to or objNull if the given object is not attached to anything.","syntaxes":[{"syntax":"attachedTo obj","params":[{"name":"obj","type":"Object","description":"given object","type_expr":"Object"}],"returns":{"type":"Object","type_expr":"Object","description":"object the given object is attached to"},"form":"unary","right":{"text":"obj"}}],"examples":[{"text":"```sqf\nif (isNull attachedTo _obj1) then\n{\n    hint \"_obj1 is not attached to anything.\";\n};\n```","code":["if (isNull attachedTo _obj1) then\n{\n\thint \"_obj1 is not attached to anything.\";\n};"]}],"see_also":["attachObject","attachTo","attachedObjects","waypointAttachVehicle","waypointAttachedVehicle","lightAttachObject","triggerAttachVehicle","attachedObject","detach"]}