setDir: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 23: | Line 23: | ||
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. | 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. | ||
See also: [[getDir]] | |||
Revision as of 09:18, 21 May 2006
object setDir heading
Operand types:
object: Object
heading: Number
Type of returned value:
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.
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