BIS fnc relativeDirTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(page filling)
m (template:command argument fix)
Line 8: Line 8:


|Returns the relative direction from object 1 to object/position 2. Return value is always in between 0 and 360.
|Returns the relative direction from object 1 to object/position 2. Return value is always in between 0 and 360.
{{Feature arma3|In Arma 3 use [[getRelDir]] instead.}}|= Description
{{Feature arma3|In Arma 3 use [[getRelDir]] instead.}}|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


|[point1, point2] call '''BIS_fnc_relativeDirTo'''|= Syntax
|[point1, point2] call '''BIS_fnc_relativeDirTo'''|SYNTAX=


|p1= point1: [[Object]] - First point.|= Parameter 1
|p1= point1: [[Object]] - First point.|PARAMETER1=


|p2= point2: [[Number]] or [[Object]] - Second point.|= Parameter 2
|p2= point2: [[Number]] or [[Object]] - Second point.|PARAMETER2=


|[[Number]]|= Return value
|[[Number]]|RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>[ [0,0,0], [[player]] ] [[call]] '''BIS_fnc_relPos''';</code> |= Example 1
|x1= <code>[ [0,0,0], [[player]] ] [[call]] '''BIS_fnc_relPos''';</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


|[[getPos]] [[getRelDir]] [[direction]]|= See also
|[[getPos]] [[getRelDir]] [[direction]]|SEEALSO=
}}
}}



Revision as of 15:32, 7 April 2019

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:
Uncategorised

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