BIS fnc relPosObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Positions | |gr1 = Positions | ||
|gr2 = Geometry | |gr2 = Geometry | ||
| Place an object relative to another object, like a ''setRelPos'' command. | | Place an object relative to another object, like a ''setRelPos'' command. | ||
| [parent, child, relPos, direction] call [[BIS_fnc_relPosObject]] | | [parent, child, relPos, direction] call [[BIS_fnc_relPosObject]] | ||
|p1= parent: [[Object]] - the parent object | |p1= parent: [[Object]] - the parent object | ||
|p2= child: [[Object]] - the child object | |p2= child: [[Object]] - the child object | ||
|p3= relPos: [[Position]] - ''child'' position relative to ''parent'' | |p3= relPos: [[Position]] - ''child'' position relative to ''parent'' | ||
|p4= direction: [[Number]] - (Optional, default 0) direction of the child object | |p4= direction: [[Number]] - (Optional, default 0) direction of the child object | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[BIS_briefingTable, BIS_map, [0, -0.58, 0.857], 98] [[call]] [[BIS_fnc_relPosObject]];</code> | |x1= <code>[BIS_briefingTable, BIS_map, [0, -0.58, 0.857], 98] [[call]] [[BIS_fnc_relPosObject]];</code> | ||
| [[getRelPos]], [[getPos]] | | [[getRelPos]], [[getPos]] | ||
}} | }} | ||
Revision as of 23:39, 17 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