User Tools

Site Tools


crpl:docs:getterrain

<- CRPL reference <- Terrain and Wall Commands

GetTerrain

Arguments Result Notation
X, YHeight 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
crpl/docs/getterrain.txt · Last modified: 2019/01/05 00:50 by Karsten75