direction: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(oops, reverting) |
||
Line 2: | Line 2: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | ofp |= Game name | ||
|1. | |1.00|= Game version | ||
|arg= |= Arguments | |arg= global |= Arguments in MP | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns the | | Returns the direction an object is facing. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''direction''' [[ | | [[Number]] <nowiki>=</nowiki> '''direction''' [[Object]]|= Syntax | ||
|p1= [[ | |p1= [[Object]] |= Parameter 1 | ||
| [[Number]] |= Return value | | [[Number]] - | ||
Direction in degrees, range 0 to 360 |= Return value | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <pre> | |x1= <pre>player setDir 90 | ||
_d = direction player</pre> | |||
returns 90 |= Example 1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[ | | [[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| | [[Category:Scripting Commands OFP 1.96|DIRECTION]] | ||
[[Category:Scripting Commands ArmA| | [[Category:Scripting Commands ArmA|DIRECTION]] | ||
[[Category:Command_Group: | [[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]] |
Revision as of 13:43, 26 November 2007
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