direction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \|p1=([^ ]+) + \| *(\[\[Numb.+) * " to " |p1=$1 |r1=$2 ")
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3")
Line 26: Line 26:
|gr1= Object Manipulation
|gr1= Object Manipulation


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


|s1=  '''direction''' object
|s1=  '''direction''' object

Revision as of 21:06, 13 June 2021

Hover & click on the images for description

Description

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

Syntax

Syntax:
direction object
Parameters:
object: Object or Location
Return Value:
Number - Direction in degrees, range 0 to 360

Examples

Example 1:
player setDir 90; _d = direction player;//returns 90

Additional Information

See also:
getDirgetDirVisualsetDirsetDirection

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