setDir: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 22: Line 22:
Set '''object heading'''.
Set '''object heading'''.


Accepted heading range is 0 to 360.
Angles are measured in degrees in a clockwise direction from north.  Negative angles represent a counter-clockwise angle and the angle can be of any size.




'''Example:'''
'''Examples:'''


soldier1 '''setDir''' 45
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 15:44, 20 May 2006


object setDir heading


Operand types:

object: Object

heading: Number

Type of returned value:

Nothing

Description:

Set object heading.

Angles are measured in degrees in a clockwise direction from north. Negative angles represent a counter-clockwise angle and the angle can be of any size.


Examples:

soldier1 setDir 45
will set soldier1 to face North East

soldier1 setDir -675
will also set soldier1 to face North East