User Tools

Site Tools


4rpl:commands:getunitorientation

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
4rpl:commands:getunitorientation [2023/12/27 02:02] – [Examples] See also: SetUnitOrientation Vertu4rpl:commands:getunitorientation [2024/09/10 15:11] (current) – Fixed typo and added line break Vertu
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.  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.+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) ->orientation+GetUnitOrientation(<-UID) ->orientation
 </code> </code>
  
 === See also === === See also ===
- +  * [[GetUnitRotation]]: Gets the arbitrary rotation of the unit in world-space.
-  * [[SetUnitOrientation]] +
-  * [[GetUnitRotation]] gets the arbitrary rotation of the unit.+
  
  
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
4rpl/commands/getunitorientation.txt · Last modified: 2024/09/10 15:11 by Vertu