BIS fnc relativeDirTo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|arma2 | |arma2 | ||
|1.00 | |1.00 | ||
|gr1 = Geometry | |gr1 = Geometry | ||
|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.}} | {{Feature|arma3|In Arma 3 use [[getRelDir]] instead.}} | ||
|[point1, point2] call '''BIS_fnc_relativeDirTo''' | |[point1, point2] call '''BIS_fnc_relativeDirTo''' | ||
|p1= point1: [[Object]] - First point. | |p1= point1: [[Object]] - First point. | ||
|p2= point2: [[Number]] or [[Object]] - Second point. | |p2= point2: [[Number]] or [[Object]] - Second point. | ||
|[[Number]] | |[[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> | ||
|[[getPos]] [[getRelDir]] [[direction]] | |[[getPos]] [[getRelDir]] [[direction]] | ||
}} | }} | ||
Revision as of 23:35, 17 January 2021
Description
- Description:
- Returns the relative direction from object 1 to object/position 2. Return value is always in between 0 and 360.
- 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
Additional Information
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