{"name":"attachedTo","operator":null,"title":"attachedTo","type":"command","url":"https://community.bistudio.com/wiki/attachedTo","revid":369107,"updated":"2024-09-03T10:27:31Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.14"}],"since":{"game":"arma3","name":"Arma 3","version":"1.14"},"arma3_since":"1.14","branch":null,"locality":{"argument":"global","effect":null,"server_exec":false},"exec":null,"description":"Returns object the given object is attached to or objNull if the given object is not attached to anything.","syntaxes":[{"syntax":"attachedTo obj","since":null,"effect":null,"exec":null,"params":[{"name":"obj","type":"Object","optional":false,"default":null,"description":"given object","types":["Object"],"since":null,"text":"obj: Object - given object"}],"returns":{"type":"Object","types":["Object"],"description":"object the given object is attached to","text":"Object - object the given object is attached to"},"form":"unary","operator":null,"left":null,"right":{"text":"obj","types":["Object"]}}],"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};"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["attachObject","attachTo","attachedObjects","waypointAttachVehicle","waypointAttachedVehicle","lightAttachObject","triggerAttachVehicle","attachedObject","detach"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 1.14","Scripting Commands"]}