This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:getunitorientation [2022/04/24 18:09] – created virgilw | 4rpl:commands:getunitorientation [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 12: | Line 12: | ||
===== Description ===== | ===== Description ===== | ||
- | Get the orientation of a unit. The orientation is one of 4 values, 0,1,2,3. These correspond to FORWARD, RIGHT, BACK, LEFT. The default orientation for units is 0, or FORWARD. | + | Get the orientation of a unit. The orientation is one of 4 values, 0,1,2,3. These correspond to FORWARD, RIGHT, BACK, LEFT. The default orientation for units is 0, or FORWARD.\\ |
+ | Changing the orientation will rotate the unit, in increments of 90 degrees, to face in the given orientation. If the unit occupies the map, the cells occupied by the unit will be updated. | ||
===== Examples ===== | ===== Examples ===== | ||
<code 4rpl> | <code 4rpl> | ||
- | GetUnitOrientation({-UID) -> | + | GetUnitOrientation(<-UID) -> |
</ | </ | ||
+ | |||
+ | === See also === | ||
+ | * [[GetUnitRotation]]: | ||
+ | |||
< | < |