setDir: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 20: | Line 20: | ||
'''Description:''' | '''Description:''' | ||
Sets object heading. | |||
Angles are measured in degrees clockwise from north. | 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]] | See also: [[getDir]] |
Revision as of 20:03, 4 July 2006
object setDir heading
Operand types:
object: Object
heading: Number
Type of returned value:
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