BIS fnc relPosObject: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - " |s1=[" to " |s1= [")
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Positions


|gr1 = Positions |GROUP1=
|gr2= Geometry


|gr2 = Geometry |GROUP2=
|descr= Place an object relative to another object, like a ''setRelPos'' command.
____________________________________________________________________________________________


| Place an object relative to another object, like a ''setRelPos'' command. |DESCRIPTION=
|s1= [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=
|r1= [[Nothing]]


| [[Nothing]] |RETURNVALUE=
|x1= <sqf>[BIS_briefingTable, BIS_map, [0, -0.58, 0.857], 98] call BIS_fnc_relPosObject;</sqf>
____________________________________________________________________________________________


|x1= <code>[BIS_briefingTable, BIS_map, [0, -0.58, 0.857], 98] [[call]] [[BIS_fnc_relPosObject]];</code> |EXAMPLE1=
|seealso= [[getRelPos]] [[getPos]]
____________________________________________________________________________________________
 
| [[getRelPos]], [[getPos]] |SEEALSO=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Geometry|{{uc:relPosObject}}]]
[[Category:Functions|{{uc:relPosObject}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:relPosObject}}]]

Latest revision as of 23:11, 12 July 2022

Hover & click on the images for description

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

See also:
getRelPos getPos

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