getRelDir: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "") |
Lou Montana (talk | contribs) m (Text replacement - " \|(x[0-9]|p[0-9]{1,2}|descr|game[0-9]|version[0-9]|s[0-9]|exec|r[0-9]|arg|eff|branch|serverExec|gr[0-9]|mp|pr|seealso) +=" to " |$1=") |
||
Line 16: | Line 16: | ||
|p2= position: [[Object]], [[Position2D]] or [[Position3D]] | |p2= position: [[Object]], [[Position2D]] or [[Position3D]] | ||
| [[Number]] | | [[Number]] | ||
|x1 = <code>_reldir = [[player]] '''getRelDir''' tank;</code> | |x1= <code>_reldir = [[player]] '''getRelDir''' tank;</code> | ||
|seealso= [[getDir]], [[direction]], [[getDirVisual]] | |seealso= [[getDir]], [[direction]], [[getDirVisual]] | ||
}} | }} |
Revision as of 23:28, 10 June 2021
Description
- Description:
- Description needed
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- object: Object
- position: Object, Position2D or Position3D
- Return Value:
- Return value needed
Examples
- Example 1:
_reldir = player getRelDir tank;
Additional Information
- See also:
- getDirdirectiongetDirVisual
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
- Posted on August 7, 2018 - 21:50 (UTC)
- Tankbuster
- To clarify, this returns a relative direction, so objects directly in front are said to be at zero degrees. So, taking example 1 above, if the tank is in front of the player, this function will return 0. If the tank is to the right of the player, it will return 90.