Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:

Returns the unit heading in the range of 0-360.

Note: The returned value does not take into consideration any map-specific declination setting, which can lead to a discrepancy between getDir output, and the direction shown by the in-game compass. To match the compass output, add the value returned by getDeclination to the one given by getDir.

Syntax

Syntax:getDir object
Parameters:
  • object: Object - Object to check.
Return Value:Number

Examples

Examples:_degrees = getDir player

Additional Information

See also: setDir, direction
Multiplayer: 
Problems: 

Notes