setDir: Difference between revisions

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


| ofp |= Game name


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


| Sets object heading. Angles are measured in degrees clockwise from north. The accepted heading range is from 0 to 360 Negative angles represent a counter-clockwise angle and the angle can be of any size. See also: [[getDir]]
Examples: soldier1 setDir 45
will set soldier1 to face North East
soldier1 setDir -675
will also set soldier1 to face North East |= Description
____________________________________________________________________________________________


'''Operand types:'''
| object '''setDir''' heading |= Syntax


'''object:''' [[Object]]
|p1= object: [[Object]] |= Parameter 1


'''heading:''' [[Number]]
|p2= heading: [[Number]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Description:'''
}}


Sets object heading.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Angles are measured in degrees clockwise from north.
<!-- Note Section END -->
</dl>


The accepted heading range is from 0 to 360
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETDIR]]
Negative angles represent a counter-clockwise angle and the angle can be of any size.
[[Category:Scripting Commands OFP 1.96|SETDIR]]
 
[[Category:Scripting Commands OFP 1.46|SETDIR]]
See also: [[getDir]]
[[Category:Scripting Commands ArmA|SETDIR]]
 
 
'''Examples:'''
 
soldier1 '''setDir''' 45<br>
will set soldier1 to face North East<br>
 
soldier1 '''setDir''' -675<br>
will also set soldier1 to face North East<br>

Revision as of 00:10, 2 August 2006

Hover & click on the images for description

Description

Description:
Sets object heading. Angles are measured in degrees clockwise from north. The accepted heading range is from 0 to 360 Negative angles represent a counter-clockwise angle and the angle can be of any size. See also: getDir Examples: soldier1 setDir 45 will set soldier1 to face North East soldier1 setDir -675 will also set soldier1 to face North East
Groups:
Uncategorised

Syntax

Syntax:
object setDir heading
Parameters:
object: Object
heading: Number
Return Value:
Nothing

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

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