<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#terrain_and_wall_commands|Terrain and Wall Commands]] ===== GetTerrain ===== ^ Arguments ^ Result ^ Notation ^ |X, Y|Height of terrain. |%%x1 y1-- n1%%| === Description === Pushes to the stack the height of the terrain cell. Returns -1 for Void terrain. Values outside the map bounds are considered Void and hence also return -1. === Examples === #Gets the terrain level at the current position of the core #and stores it in variable lvl CurrentCoords GetTerrain ->lvl