This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:commands:rotateunittowards [2023/10/22 17:16] – Negative rotation has no affect. Vertu | 4rpl:commands:rotateunittowards [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 7: | Line 7: | ||
===== Description ===== | ===== Description ===== | ||
Rotates a unit so that its forward, or positive Z axis, points towards the supplied vector position. The vector pos (X,Y,Z coordinates) are a position in 3D space.\\ | Rotates a unit so that its forward, or positive Z axis, points towards the supplied vector position. The vector pos (X,Y,Z coordinates) are a position in 3D space.\\ | ||
- | The max rotation can be limited by supplying a maxRotationDeg in degrees.\\ | + | The max rotation can be limited by supplying a maxRotationDeg in degrees. |
- | Negative values are not supported | + | |
+ | |||
+ | If a negative value is specified | ||
+ | :WARNING: This is far more complicated than this. More detailed documentation is required. | ||
===== Examples ===== | ===== Examples ===== | ||
<code 4rpl> | <code 4rpl> |