direction: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
|arg= global |= Arguments in MP | |||
____________________________________________________________________________________________ | |||
| Returns the direction an object is facing. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | '''direction''' object |= Syntax | ||
|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> | |||
returns 90 |= Example 1 | |||
____________________________________________________________________________________________ | |||
| [[setDir]] |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|DIRECTION]] | |||
[[Category:Scripting Commands OFP 1.96|DIRECTION]] | |||
[[Category:Scripting Commands ArmA|DIRECTION]] |
Revision as of 23:46, 1 August 2006
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