BIS fnc relativeDirTo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +(spawn|call) +'''([a-zA-Z0-9_]+)'''[ ]* " to " $1 $2 ")
m (Text replacement - " \| *(\[[^ ]+\] (call|spawn) ('''|\[\[)BI(N|S)_fnc_[a-zA-Z0-9_]+('''|\]\]));? \| *p1 *=" to " |s1=$1 |p1=")
Line 10: Line 10:
{{Feature|arma3|In Arma 3 use [[getRelDir]] instead.}}
{{Feature|arma3|In Arma 3 use [[getRelDir]] instead.}}


|[point1, point2] call [[BIS_fnc_relativeDirTo]]
|s1=[point1, point2] call [[BIS_fnc_relativeDirTo]]


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

Revision as of 19:31, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
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