BIS fnc attachToRelative: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Fix) |
||
| Line 10: | Line 10: | ||
|eff= global | |eff= global | ||
|descr= Attaches object | |descr= Attaches an object to another, preserving their relative position and orientation. | ||
|s1= [ | |s1= [attachedObject, destinationObject, visual] call [[BIS_fnc_attachToRelative]] | ||
|p1= | |p1= attachedObject: [[Object]] | ||
|p2= | |p2= destinationObject: [[Object]] | ||
|p3= visual: [[Boolean]] (Optional, default [[true]]) if [[true]] render scope is used else simulation scope. See [[Simulation vs Render Time Scope]] for more information | |p3= visual: [[Boolean]] (Optional, default [[true]]) if [[true]] render scope is used else simulation scope. See [[Simulation vs Render Time Scope]] for more information | ||
| Line 22: | Line 22: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <sqf>[ | |x1= <sqf>[player, car] call BIS_fnc_attachToRelative;</sqf> | ||
|seealso= [[BIS_fnc_weaponDirectionRelative]] [[BIS_fnc_vectorDirAndUpRelative]] [[attachTo]] | |seealso= [[BIS_fnc_weaponDirectionRelative]] [[BIS_fnc_vectorDirAndUpRelative]] [[attachTo]] | ||
}} | }} | ||
Latest revision as of 14:49, 10 May 2026
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:
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note