Arma 3 Scripting

direction

  • Global argument
  • Arma 3 v0.50
  • First in Operation Flashpoint v1.00

Command · also in Locations · Markdown · JSON · original wiki page

Description

Returns the direction an object or a location is facing (differs from getDir in that this also works with locations).

Syntax

direction object

Parameters:

Returns: Number in range 0..360 - Direction in degrees

Examples

Example 1

player setDir 90;
_d = direction player;//returns 90

See also

getDir · getDirVisual · setDir · setDirection