BIS fnc relPosObject: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Geometry(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 9: | Line 8: | ||
|gr2 = Geometry |GROUP2= | |gr2 = Geometry |GROUP2= | ||
| Place an object relative to another object, like a ''setRelPos'' command. |DESCRIPTION= | | Place an object relative to another object, like a ''setRelPos'' command. |DESCRIPTION= | ||
| [parent, child, relPos, direction] call [[BIS_fnc_relPosObject]] |SYNTAX= | | [parent, child, relPos, direction] call [[BIS_fnc_relPosObject]] |SYNTAX= | ||
Line 25: | Line 22: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[BIS_briefingTable, BIS_map, [0, -0.58, 0.857], 98] [[call]] [[BIS_fnc_relPosObject]];</code> |EXAMPLE1= | |x1= <code>[BIS_briefingTable, BIS_map, [0, -0.58, 0.857], 98] [[call]] [[BIS_fnc_relPosObject]];</code> |EXAMPLE1= | ||
| [[getRelPos]], [[getPos]] |SEEALSO= | | [[getRelPos]], [[getPos]] |SEEALSO= |
Revision as of 23:51, 16 January 2021
Description
- Description:
- Place an object relative to another object, like a setRelPos command.
- Execution:
- call
- Groups:
- PositionsGeometry
Syntax
- Syntax:
- [parent, child, relPos, direction] call BIS_fnc_relPosObject
- Parameters:
- parent: Object - the parent object
- child: Object - the child object
- relPos: Position - child position relative to parent
- direction: Number - (Optional, default 0) direction of the child object
- Return Value:
- Nothing
Examples
- Example 1:
[BIS_briefingTable, BIS_map, [0, -0.58, 0.857], 98] call BIS_fnc_relPosObject;
Additional Information
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note