This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ixe:irpl:unit:getunitdirection [2025/01/24 19:20] – [Description] Argonwolf | ixe:irpl:unit:getunitdirection [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 11: | Line 11: | ||
Returns the facing direction of unit UID. Behaves differently depending on the unit's rotate mode: | Returns the facing direction of unit UID. Behaves differently depending on the unit's rotate mode: | ||
- | *For units in rotate mode 0 (constant, | + | *For units in rotate mode 0 (constant, |
- | *For units in rotate mode 1 (left/ | + | *For units in rotate mode 1 (left/ |
*For units in rotate mode 2 (four-way, only possible in custom units), direction is 0 if facing right, 1 if facing up, 2 if facing left or 3 if facing down. | *For units in rotate mode 2 (four-way, only possible in custom units), direction is 0 if facing right, 1 if facing up, 2 if facing left or 3 if facing down. | ||
*If unit UID does not exist, 0 is returned. | *If unit UID does not exist, 0 is returned. |