BIS fnc relativeDirTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\[\[Category\:Function Group\: Geometry(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
Line 36: Line 36:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Geometry|{{uc:relativeDirTo}}]]
 
[[Category:Functions|{{uc:relativeDirTo}}]]
[[Category:Functions|{{uc:relativeDirTo}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:relativeDirTo}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:relativeDirTo}}]]

Revision as of 12:42, 12 October 2020

Hover & click on the images for description

Description

Description:
Returns the relative direction from object 1 to object/position 2. Return value is always in between 0 and 360.
Arma 3
In Arma 3 use getRelDir instead.
Execution:
call
Groups:
Geometry

Syntax

Syntax:
[point1, point2] call BIS_fnc_relativeDirTo
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

Notes

Bottom Section