User Tools

Site Tools


4rpl:commands:rotateunittowardscell

Index

RotateUnitTowardsCell

RotateUnitTowardsCell(<-UID <-posX <-posZ <-maxRotationDeg)

Description

Rotates a unit so that its forward, or positive Z axis, points towards the supplied position, but with rotation confined to the plane of the map (the XZ plane). The X, Z coordinates are a position in the plane of the map. The max rotation can be limited by supplying a maxRotationDeg in degrees. If a negative value is specified for the maxRotationDeg, the rotation will move away from rather than towards the specified target location

Examples

RotateUnitTowardsCell(<-UID 42 23 1)

Index

4rpl/commands/rotateunittowardscell.txt · Last modified: 2022/12/04 18:19 by Vertu