This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:getterrain [2014/10/01 19:02] – external edit 127.0.0.1 | crpl:docs:getterrain [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | ||
<- [[crpl: | <- [[crpl: | ||
===== GetTerrain | ===== GetTerrain | ||
Line 10: | Line 9: | ||
Pushes to the stack the height of the terrain cell. Returns -1 for Void terrain. | Pushes to the stack the height of the terrain cell. Returns -1 for Void terrain. | ||
=== Examples === | === Examples === | ||
- | < | + | < |
+ | #Gets the terrain level at the current position of the core | ||
+ | #and stores it in variable lvl | ||
+ | CurrentCoords GetTerrain ->lvl</ |