getDir: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (fixed broken wiki)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| degrees <nowiki>=</nowiki> '''getDir''' [[Object#Unit|Unit]]|= Syntax
| degrees <nowiki>=</nowiki> '''getDir''' [[Object#Unit|Unit]] |= Syntax
|p1 - degrees: [[Array]]
|p1= degrees: [[Array]] |= Parameter 1
|p2 - [[Object#Unit|Unit]]]
|p2= [[Object#Unit|Unit]] |=Parameter 2
| [[Number]] |= Return value
| [[Number]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1 = <code>_degrees<nowiki>=</nowiki>'''getDir''' [[player]]  </code>
|x1 = <code>_degrees <nowiki>=</nowiki> '''getDir''' [[player]]  </code> |= Example 1
| |= See also
____________________________________________________________________________________________
| [[direction]] |= See also


}}
}}
Line 23: Line 24:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''</dt>
<dd class="note">
This is exactly the same as [[direction]]</dd>


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 14:38, 26 November 2007

Hover & click on the images for description

Description

Description:
Returns the unit heading in the range from 0 to 360.
Groups:
Uncategorised

Syntax

Syntax:
degrees = getDir Unit
Parameters:
degrees: Array
Unit
Return Value:
Number

Examples

Example 1:
_degrees = getDir player

Additional Information

See also:
direction

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

Notes

Bottom Section