direction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


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


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


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


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


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


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


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


}}
}}
Line 33: Line 31:
<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 41: Line 37:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>


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

Revision as of 14:42, 26 November 2007

-wrong parameter ("Arma") defined!-1.08
Hover & click on the images for description

Description

Description:
Returns the orientation of a location.
Groups:
Uncategorised

Syntax

Syntax:
direction Location
Parameters:
Location
Return Value:
Number

Examples

Example 1:
_locDir = direction myLocation

Additional Information

See also:
setDirection

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