Index

:!: Available in version 1.2.1 and later.

RotateObj

RotateObj(<-unit <-obj <-rot <-maxDegrees)

Description

Rotates an obj no more than maxDegrees towards the angles (in degrees) specified by the rot vector.
This is done to the object's world orientation.

Examples

#Rotate an "arm" child object around the y axis to point at 45 degrees
RotateObj(self "arm" V3(0 45 0) 1)

Index