setDir: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SETDIR]]
[[Category:Scripting Commands|SETDIR]]
[[Category:Scripting Commands OFP 1.97|SETDIR]]
[[Category:Scripting Commands OFP 1.96|SETDIR]]
[[Category:Scripting Commands OFP 1.46|SETDIR]]
[[Category:Scripting Commands OFP 1.46|SETDIR]]
[[Category:Scripting Commands ArmA|SETDIR]]
[[Category:Scripting Commands ArmA|SETDIR]]

Revision as of 21:28, 1 June 2006


object setDir heading


Operand types:

object: Object

heading: Number

Type of returned value:

Nothing

Description:

Set object heading.

Angles are measured in degrees clockwise 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