getRelDir: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - " {{GameCategory|arma3|New Scripting Commands}} {{GameCategory|arma3|Scripting Commands}} {{uc:{{PAGENAME}}}} " to "") |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
Line 17: | Line 17: | ||
| [[Number]] | | [[Number]] | ||
|x1 = <code>_reldir = [[player]] '''getRelDir''' tank;</code> | |x1 = <code>_reldir = [[player]] '''getRelDir''' tank;</code> | ||
| [[getDir]], [[direction]], [[getDirVisual]] | |seealso= [[getDir]], [[direction]], [[getDirVisual]] | ||
}} | }} | ||
Revision as of 23:48, 16 February 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.