User Tools

Site Tools


4rpl:commands:getterrainspecial

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:getterrainspecial [2021/01/14 18:40] – created virgilw4rpl:commands:getterrainspecial [2021/01/24 14:15] (current) – added get/set tabs Sanian
Line 1: Line 1:
 +~~NOTOC~~
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
 +
 +<WRAP tabs>
 +  * [[4rpl:commands:GetTerrainSpecial|Get]]
 +  * [[4rpl:commands:SetTerrainSpecial|Set]]
 +</WRAP>
  
 :!: Available in version 1.2.1 and later. :!: Available in version 1.2.1 and later.
 +
 ====== GetTerrainSpecial ====== ====== GetTerrainSpecial ======
 +
 GetTerrainSpecial(<-posX <-posZ) ->specialTerrainSlot GetTerrainSpecial(<-posX <-posZ) ->specialTerrainSlot
  
 ===== Description ===== ===== Description =====
-Gets the slot for the special terrain present at the terrain location specified by posX and posZ. A value of 0 mean no special terrain is present. + 
-A value of 1 through 10 (inclusive) indicates the special terrain slot present at the location. The special terrain slots are defined in the 'Creeper' tab in the editor.+Gets the slot for the special terrain present at the terrain location specified by posX and posZ. A value of 0 mean no special terrain is present. A value of 1 through 10 (inclusive) indicates the special terrain slot present at the location. The special terrain slots are defined in the 'Creeper' tab in the editor.
  
 ===== Examples ===== ===== Examples =====
 +
 <code 4rpl> <code 4rpl>
 GetTerrainSpecial(50 30) ->specialTerrainSlot GetTerrainSpecial(50 30) ->specialTerrainSlot
 </code> </code>
-            +
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
 +
 +
4rpl/commands/getterrainspecial.1610667647.txt.gz · Last modified: 2021/01/14 18:40 by virgilw