BIS fnc attachToRelative: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ") |
Lou Montana (talk | contribs) m (Fix) |
||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.64 | |||
|1.64 | |||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| Line 11: | Line 10: | ||
|eff= global | |eff= global | ||
| Attaches object | |descr= Attaches an object to another, preserving their relative position and orientation. | ||
|s1= [attachedObject, destinationObject, visual] call [[BIS_fnc_attachToRelative]] | |||
| [ | |p1= attachedObject: [[Object]] | ||
|p2= destinationObject: [[Object]] | |||
|p2= | |||
|p3= visual (Optional | |p3= visual: [[Boolean]] (Optional, default [[true]]) if [[true]] render scope is used else simulation scope. See [[Simulation vs Render Time Scope]] for more information | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1=< | |x1= <sqf>[player, car] call BIS_fnc_attachToRelative;</sqf> | ||
|seealso= [[BIS_fnc_weaponDirectionRelative]] | |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