This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
crpl:docs:getterrain [2013/01/14 19:03] – created chani | crpl:docs:getterrain [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | TODO | + | <- [[crpl: |
+ | ===== 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. | ||
+ | === Examples === | ||
+ | < | ||
+ | #Gets the terrain level at the current position of the core | ||
+ | #and stores it in variable lvl | ||
+ | CurrentCoords GetTerrain -> |