setDir
From Bohemia Interactive Community
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Operation Flashpoint
- Version:
- 1.00
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.
Syntax
Examples
- Example 1:
_soldier1 setDir 45Will set soldier1 to face North East- Example 2:
_soldier1 setDir -675Will also set soldier1 to face North East
Additional Information
- Multiplayer:
- Behaviour unknown.
- See also:
- getDir
Notes
Notes
Notes
- Posted on May 9, 2007 - 20:43 CET
- Manny
-
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;

