direction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(oops, reverting)
Line 2: Line 2:
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma |= Game name
| ofp |= Game name


|1.08|= Game version
|1.00|= Game version


|arg= |= Arguments in MP
|arg= global |= Arguments in MP
 
|eff= |= Effects in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns the orientation of a location.|= Description
| Returns the direction an object is facing. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''direction''' [[Location]] |= Syntax
| [[Number]] <nowiki>=</nowiki> '''direction''' [[Object]]|= Syntax


|p1= [[Location]] |= Parameter 1
|p1= [[Object]] |= Parameter 1


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


| [[setDirection]] |= See also
| [[setDir]] |= See also


}}
}}
Line 31: Line 33:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
 
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''</dt>
<dd class="note">
This is exactly the same as [[getDir]].</dd>
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>
Line 37: Line 41:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>


 
[[Category:Scripting Commands|DIRECTION]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|DIRECTION]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|DIRECTION]]
[[Category:Command_Group:_Locations|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]

Revision as of 13:43, 26 November 2007

Hover & click on the images for description

Description

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

Syntax

Syntax:
Number = direction Object
Parameters:
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

Ceeeb
This is exactly the same as getDir.

Bottom Section