BIS fnc relativeDirTo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[[^ ]+\] (call|spawn) ('''|\[\[)BI(N|S)_fnc_[a-zA-Z0-9_]+('''|\]\]));? \| *p1 *=" to " |s1=$1 |p1=") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
|arma2 | |game1= arma2 | ||
|version1= 1.00 | |||
|1.00 | |game2= arma2oa | ||
|version2= 1.50 | |||
|game3= tkoh | |||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
|gr1= Geometry | |gr1= Geometry | ||
|Returns the relative direction from object 1 to object/position 2. Return value is always in between 0 and 360. | |descr= Returns the relative direction from object 1 to object/position 2. Return value is always in between 0 and 360. | ||
{{Feature|arma3| | {{Feature|arma3|Use [[getRelDir]] instead.}} | ||
|s1=[ | |s1= [from, to] call [[BIS_fnc_relativeDirTo]] | ||
|p1= | |p1= from: [[Object]] | ||
|p2= | |p2= to: [[Object]] or [[Array]] format [[Position]] | ||
|r1=[[Number]] | |r1= [[Number]] | ||
|x1= <code><nowiki | |x1= <code>[<nowiki/>[0,0,0], [[player]]] [[call]] [[BIS_fnc_relativeDirTo]];</code> | ||
|seealso= [[getPos]] [[getRelDir]] [[direction]] | |seealso= [[getPos]] [[getRelDir]] [[direction]] | ||
}} | }} | ||
Revision as of 20:22, 12 June 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:
- [from, to] call BIS_fnc_relativeDirTo
- Parameters:
- from: Object
- to: Object or Array format Position
- Return Value:
- Number
Examples
- Example 1:
[[0,0,0], player] call BIS_fnc_relativeDirTo;
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