{"name":"BIS_fnc_attachToRelative","operator":null,"title":"BIS fnc attachToRelative","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_attachToRelative","revid":378576,"updated":"2026-05-10T12:49:53Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.64"}],"since":{"game":"arma3","name":"Arma 3","version":"1.64"},"arma3_since":"1.64","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"description":"Attaches an object to another, preserving their relative position and orientation.","syntaxes":[{"syntax":"[attachedObject, destinationObject, visual] call BIS_fnc_attachToRelative","since":null,"effect":null,"exec":null,"params":[{"name":"attachedObject","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"attachedObject: Object"},{"name":"destinationObject","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"destinationObject: Object"},{"name":"visual","type":"Boolean","optional":true,"default":"true","description":"if true render scope is used else simulation scope. See Simulation vs Render Time Scope for more information","types":["Boolean"],"since":null,"text":"visual: Boolean (Optional, default true) if true render scope is used else simulation scope. See Simulation vs Render Time Scope for more information"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[player, car] call BIS_fnc_attachToRelative;\n```","code":["[player, car] call BIS_fnc_attachToRelative;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_weaponDirectionRelative","BIS_fnc_vectorDirAndUpRelative","attachTo"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Object Manipulation","Functions","Functions: Global Effect","Introduced with Arma 3 version 1.64"],"docblock":null,"filled_from_docblock":[]}