|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.
|Syntax:||object setDir heading|
Will point tank1 north-east:
Will point unit1 north-west:
|See also:||getDir, setFormDir|
- Posted on May 9, 2007 - 20:43 CET
- Though effects of this command remain local, you can do a setPos afterwards to synchronize the direction on all machines in MP.
myObj setDir 90; myObj setPos getPos myObj;
- (this is obsolete from 2.12)