getDir: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the object heading in the range from 0 to 360. |= Description
| Returns the unit heading in the range from 0 to 360. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| degrees <nowiki>=</nowiki> '''getDir''' unit|= Syntax
| degrees <nowiki>=</nowiki> '''getDir''' [[Object#Unit|Unit]]|= Syntax
|p1 - degrees: [[Array]]
|p1 - degrees: [[Array]]
|p2 - unit: [[Object]]
|p2 - [[Object#Unit|Unit]]]
| [[Number]] |= Return value
| [[Number]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 10:46, 27 August 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
Return Value:
p1 - degrees: Array

Examples

Example 1:
_degrees=getDir player

Additional Information

See also:
p2 - Unit]

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

Ceeeb
This is exactly the same as direction

Bottom Section