User Tools

Site Tools


4rpl:commands:setterrainline

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:setterrainline [2021/01/08 16:01] – created - external edit 127.0.0.14rpl:commands:setterrainline [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 3: Line 3:
  
 ====== SetTerrainLine ====== ====== SetTerrainLine ======
-SetTerrainLine{<-startX <-startZ <-endX <-endZ <-minTerrainHeight <-maxTerrainHeight <-lineWidth <-fillRatio)+SetTerrainLine(<-startX <-startZ <-endX <-endZ <-minTerrainHeight <-maxTerrainHeight <-lineWidth <-fillRatio)
  
 ===== Description ===== ===== Description =====
-Sets the heights of the terrain on a line of width lineWidth from start to end.  A value of 0 for terrainHeight means "void" or no terrain. +Sets the heights of the terrain on a line of width lineWidth from start to end.  A value of 0 for terrainHeight means "void" or no terrain.\\ 
-If the min and max heights are different, a random height will be chosen in the range from [min,max]. +If the min and max heights are different, a random height will be chosen in the range from [min,max].\\ 
-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 +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.  Values in between will affect a partial amount of terrain cells in range.+
  
 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.
4rpl/commands/setterrainline.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)