getRelDir: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| ?\[\[([a-zA-Z0-9]+)\]\] *\|x1=" to " |r1= $1 |x1=") |
Lou Montana (talk | contribs) m (Text replacement - "<dl class="command_description"> <dt></dt>" to "<dl class="command_description"> <dt></dt>") |
||
Line 22: | Line 22: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<dt></dt> | <dt></dt> | ||
<dd class="notedate">Posted on August 7, 2018 - 21:50 (UTC)</dd> | <dd class="notedate">Posted on August 7, 2018 - 21:50 (UTC)</dd> |
Revision as of 13:23, 12 June 2021
Description
- Description:
- Description needed
- Groups:
- Object Manipulation
Syntax
- Syntax:
- Syntax needed
- Parameters:
- object: Object
- position: Object, Position2D or Position3D
- Return Value:
- Number
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.