~~NOTOC~~ <=[[4rpl:start| Index]] * [[4rpl:commands:GetUnitCell|Get]] * [[4rpl:commands:SetUnitCell|Set]] ====== SetUnitCell ====== SetUnitCell(<-UID <-cellX <-cellZ <-snapToTerrain) ===== Description ===== Sets the 2D map position of a unit. The arguments are unit uid, the X and Z positions on the map, and whether the unit should be move to the terrain height at the target location. ===== Examples ===== SetUnitCell(<-UID <-posX <-posZ true) <=[[4rpl:start| Index]]