User Tools

Site Tools


4rpl:commands:setunitrotation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:setunitrotation [2022/04/24 18:38] – cross-ref Karsten754rpl:commands:setunitrotation [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 13: Line 13:
 Set the rotation of a unit, in degrees. A vector (x,y,z) is passed in representing the rotation around the x,y,z axes. Set the rotation of a unit, in degrees. A vector (x,y,z) is passed in representing the rotation around the x,y,z axes.
 Note the Y axis is the 'vertical' axis relative to the map plane. Note the Y axis is the 'vertical' axis relative to the map plane.
 +
 +Note: The rotation API will rotate the unit, but no changes will be made the map cells occupied by the unit. Non 90 degree rotations aren't supported by the map cells. To properly reflect rotation on occupied map cells, use the Unit Orientation APIs.
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
4rpl/commands/setunitrotation.1650825505.txt.gz · Last modified: 2025/02/14 14:56 (external edit)