BIS fnc relPosObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page filling) |
m (template:command argument fix) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Place an object relative to another object, like a ''setRelPos'' command. |= | | Place an object relative to another object, like a ''setRelPos'' command. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [parent, child, relPos, direction] call [[BIS_fnc_relPosObject]] |= | | [parent, child, relPos, direction] call [[BIS_fnc_relPosObject]] |SYNTAX= | ||
|p1= parent: [[Object]] - the parent object |= | |p1= parent: [[Object]] - the parent object |PARAMETER1= | ||
|p2= child: [[Object]] - the child object |= | |p2= child: [[Object]] - the child object |PARAMETER2= | ||
|p3= relPos: [[Position]] - ''child'' position relative to ''parent'' |= | |p3= relPos: [[Position]] - ''child'' position relative to ''parent'' |PARAMETER3= | ||
|p4= direction: [[Number]] - (Optional, default 0) direction of the child object |= | |p4= direction: [[Number]] - (Optional, default 0) direction of the child object |PARAMETER4= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|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> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[getRelPos]], [[getPos]] |= | | [[getRelPos]], [[getPos]] |SEEALSO= | ||
}} | }} | ||
Revision as of 14:32, 7 April 2019
Description
- Description:
- Place an object relative to another object, like a setRelPos command.
- Execution:
- call
- Groups:
- Uncategorised
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