{"name":"BIS_fnc_attachToRelative","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","games":{"arma3":"1.64"},"since":"arma3 1.64","arma3_since":"1.64","locality":{"argument":"local","effect":"global"},"description":"Attaches an object to another, preserving their relative position and orientation.","syntaxes":[{"syntax":"[attachedObject, destinationObject, visual] call BIS_fnc_attachToRelative","params":[{"name":"attachedObject","type":"Object","type_expr":"Object"},{"name":"destinationObject","type":"Object","type_expr":"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","type_expr":"Boolean","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","type_expr":"Nothing"}}],"examples":[{"code":["[player, car] call BIS_fnc_attachToRelative;"]}],"see_also":["BIS_fnc_weaponDirectionRelative","BIS_fnc_vectorDirAndUpRelative","attachTo"]}