User Tools

Site Tools


crpl:docs:getterrain

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
crpl:docs:getterrain [2013/01/14 14:10] – external edit 127.0.0.1crpl:docs:getterrain [2016/02/11 22:34] – [GetTerrain] GameGibu
Line 1: Line 1:
 +~~DISCUSSION~~ 
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#terrain_and_wall_commands|Terrain and Wall Commands]]
 =====  GetTerrain  ===== =====  GetTerrain  =====
  
-^Arguments^Result^Notation^ +^ Arguments ^ Result ^ Notation ^ 
-|X, Y|Height of terrain. |''x1 y1-- n1 ''|+|X, Y|Height of terrain. |%%x1 y1-- n1%%|
  
  
 === Description === === Description ===
-Pushes to the stack the height of the terrain cell.+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 === === Examples ===
-<code>example goes here</code>  +<code> 
- +#Gets the terrain level at the current position of the core 
 +#and stores it in variable lvl 
 +CurrentCoords GetTerrain ->lvl</code> 
crpl/docs/getterrain.txt · Last modified: 2019/01/05 00:50 by Karsten75