BIS fnc relPosObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 22: | Line 22: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <code>[BIS_briefingTable, BIS_map, [0, -0.58, 0.857], 98] | |x1= <code>[BIS_briefingTable, BIS_map, [0, -0.58, 0.857], 98] call [[BIS_fnc_relPosObject]];</code> | ||
|seealso= [[getRelPos]] [[getPos]] | |seealso= [[getRelPos]] [[getPos]] | ||
}} | }} |
Revision as of 21:37, 12 July 2022
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