This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 4rpl:commands:setcreeper [2021/03/12 21:50] – Karsten75 | 4rpl:commands:setcreeper [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| - | < | + | < |
| + | < | ||
| <WRAP tabs> | <WRAP tabs> | ||
| * [[4rpl: | * [[4rpl: | ||
| Line 7: | Line 8: | ||
| </ | </ | ||
| ====== SetCreeper ====== | ====== SetCreeper ====== | ||
| - | SetCreeper{<-cellX <-cellZ < | + | SetCreeper(<-cellX <-cellZ < |
| ===== Description ===== | ===== Description ===== | ||
| Sets the creeper amount at the specified integer map coordinates. | Sets the creeper amount at the specified integer map coordinates. | ||
| - | The dontLower argument is a boolean | + | |
| - | If set to true and the amount of creeper in the cell exceeds the amount being set, the call will not affect the creeper. | + | The dontLower argument is a Boolean |
| - | The dontlower argument only affects SetCreeper if a like-type of creeper is being set. | + | |
| - | and the destination contains creeper. | + | |
| - | If you call SetCreeper with a positive number (creeper) and anticreeper is at the destination, | + | |
| The amount specified is a floating point number where 1 represents creeper that has a height of 1 terrain unit. | The amount specified is a floating point number where 1 represents creeper that has a height of 1 terrain unit. | ||
| + | |||
| + | :NOTE: Creeper does not immediately render unlike its editor counter part of placing Creep. It will come out of the ground as the game simulates, a behavior you might not expect from this API but from [[4rpl: | ||
| ===== Examples ===== | ===== Examples ===== | ||
| <code 4rpl> | <code 4rpl> | ||
| SetCreeper(42 23 5 false) | SetCreeper(42 23 5 false) | ||
| - | |||
| </ | </ | ||
| + | |||
| + | === Notes === | ||
| + | |||
| + | The dontlower argument only affects SetCreeper if a like-type of creeper is being set. For instance if you call setcreeper with a positive amount (creeper) and the destination contains creeper. | ||
| + | If you call SetCreeper with a positive number (creeper) and anticreeper is at the destination, | ||
| + | |||
| + | |||
| + | |||
| < | < | ||