direction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|DIRECTION]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|DIRECTION]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|DIRECTION]]


| ofp |= Game name


<h2 style="color:#000066">'''direction ''object'''''</h2>
|1.00|= Game version


|arg= global |= Arguments in MP
____________________________________________________________________________________________


'''Operand types:'''
| Returns the direction an object is facing. |= Description
____________________________________________________________________________________________


'''object:''' [[Object]]
| '''direction''' object |= Syntax


'''Type of returned value:'''
|p1= object: [[Object]] |= Parameter 1


[[Number]]
| [[Number]]
Direction in degrees, range 0 to 360 |= Return value
____________________________________________________________________________________________
 
|x1= <pre>player setDir 90
_d = direction player</pre>


'''Compatibility:'''
returns 90 |= Example 1
____________________________________________________________________________________________


Added in version '''1.50'''
| [[setDir]] |= See also


'''Description:'''
}}


Object heading in range 0 to 360.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


_d = '''direction''' [[player]]
[[Category:Scripting Commands|DIRECTION]]
[[Category:Scripting Commands OFP 1.96|DIRECTION]]
[[Category:Scripting Commands ArmA|DIRECTION]]

Revision as of 00:46, 2 August 2006

Hover & click on the images for description

Description

Description:
Returns the direction an object is facing.
Groups:
Uncategorised

Syntax

Syntax:
direction object
Parameters:
object: Object
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:
setDir

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