BIS fnc relativeDirTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
m (Text replacement - "\|( *\[\[[a-zA-Z]+\]\]) * \|x1=" to "\|r1=$1 \|x1=")
Line 16: Line 16:
|p2= point2: [[Number]] or [[Object]] - Second point.
|p2= point2: [[Number]] or [[Object]] - Second point.


|[[Number]]
\|r1=[[Number]]


|x1= <code><nowiki>[</nowiki>[0,0,0], [[player]]] [[call]] '''BIS_fnc_relPos''';</code>
\|x1= <code><nowiki>[</nowiki>[0,0,0], [[player]]] [[call]] '''BIS_fnc_relPos''';</code>


|seealso= [[getPos]] [[getRelDir]] [[direction]]
|seealso= [[getPos]] [[getRelDir]] [[direction]]

Revision as of 10:25, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Geometry

Syntax

Syntax:
Syntax needed
Parameters:
point1: Object - First point.
point2: Number or Object - Second point. \
Return Value:
Number \

Examples

Example 1:
[[0,0,0], player] call BIS_fnc_relPos;

Additional Information

See also:
getPos getRelDir direction

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