BIS_fnc_attachToRelative

From Bohemia Interactive Community
Revision as of 14:49, 10 May 2026 by Lou Montana (talk | contribs) (Fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Hover & click on the images for description

Description

Description:
Attaches an object to another, preserving their relative position and orientation.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
[attachedObject, destinationObject, visual] call BIS_fnc_attachToRelative
Parameters:
attachedObject: Object
destinationObject: Object
visual: Boolean (Optional, default true) if true render scope is used else simulation scope. See Simulation vs Render Time Scope for more information
Return Value:
Nothing

Examples

Example 1:
[player, car] call BIS_fnc_attachToRelative;

Additional Information

See also:
BIS_fnc_weaponDirectionRelative BIS_fnc_vectorDirAndUpRelative attachTo

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note