This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:setterraininrange [2021/01/08 16:01] – created - external edit 127.0.0.1 | 4rpl:commands:setterraininrange [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
====== SetTerrainInRange ====== | ====== SetTerrainInRange ====== | ||
- | SetTerrainInRange{<-cellX <-cellZ < | + | SetTerrainInRange(<-cellX <-cellZ < |
===== Description ===== | ===== Description ===== | ||
- | Sets the heights of the terrain within the radius of specified integer map coordinates. | + | Sets the heights of the terrain within the radius of specified integer map coordinates. |
- | If the min and max heights are different, a random height will be chosen in the range from [min, | + | If the min and max heights are different, a random height will be chosen in the range from [min,max].\\ |
- | The isSquare parameter is a boolean indicating where to fill terrain in a square (true) or a circle (false) from the specified coordinates. | + | The isSquare parameter is a boolean indicating where to fill terrain in a square (true) or a circle (false) from the specified coordinates.\\ |
- | The fillRatio is a float in the range [0,1]. A value of 1 means to change the height of every cell in range. | + | The fillRatio is a float in the range [0,1]. A value of 1 means to change the height of every cell in range. A value of 0 means to do nothing. Values in between will affect a partial amount of terrain cells in range. |
- | do nothing. | + | |
- | Note: Changing the terrain will cause the terrain to redraw and nearby units to recalculate line of sight and other data. | + | Note: Changing the terrain will cause the terrain to redraw and nearby units to recalculate line of sight and other data.\\ |
+ | :NOTE: Terrain heights of above 20 will not behave normal:\\ | ||
+ | - Creeper will not render properly. Creeper will begin to render at a maximum height of 20 so for terrain higher than 20, Creeper on the terrain will be rendered inside it.\\ | ||
+ | - Most of the terrain renders completely black but for certain heights, like 21, the terrain will render a blindingly bright color. If bloom is on this will be very, very, bright. It is best to avoid these specific heights in case the player wants bloom on. | ||
===== Examples ===== | ===== Examples ===== |