~~NOTOC~~ <=[[4rpl:start| Index]] * [[4rpl:commands:GetTerrain|Get]] * [[4rpl:commands:SetTerrain|Set]] ====== GetTerrain ====== GetTerrain(<-cellX <-cellZ) ->terrainHeight ===== Description ===== Gets the integer height of the terrain at the specified integer map coordinates. A value of 0 means "void" or no terrain. A value of -1 is returned if the terrain coordinate is outside the map. ===== Examples ===== GetTerrain(42 23) ->terrainHeight <=[[4rpl:start| Index]]