This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:getterrainspecial [2021/01/14 23:40] – created virgilw | 4rpl:commands:getterrainspecial [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOTOC~~ | ||
< | < | ||
+ | |||
+ | <WRAP tabs> | ||
+ | * [[4rpl: | ||
+ | * [[4rpl: | ||
+ | </ | ||
:!: Available in version 1.2.1 and later. | :!: Available in version 1.2.1 and later. | ||
+ | |||
====== GetTerrainSpecial ====== | ====== GetTerrainSpecial ====== | ||
+ | |||
GetTerrainSpecial(< | GetTerrainSpecial(< | ||
===== 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 ' | + | 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 ' |
===== Examples ===== | ===== Examples ===== | ||
+ | |||
<code 4rpl> | <code 4rpl> | ||
GetTerrainSpecial(50 30) -> | GetTerrainSpecial(50 30) -> | ||
</ | </ | ||
- | | + | |
< | < | ||
+ | |||
+ |