User Tools

Site Tools


4rpl:commands:rotateunit

Index

:!: Available in version 1.2.1 and later.

RotateUnit

RotateUnit(<-unit <-rot <-maxDegrees)

Description

Rotates a unit no more than maxDegrees towards the angles (in degrees) specified by the rot vector.

Examples

#Rotate ourselves around the y axis to point at 45 degrees
RotateUnit(self V3(0 45 0) 1)

Index

4rpl/commands/rotateunit.txt · Last modified: 2021/01/14 18:34 by Sanian