~~NOTOC~~ <=[[4rpl:start| Index]] ====== SetTerrainLine ====== SetTerrainLine(<-startX <-startZ <-endX <-endZ <-minTerrainHeight <-maxTerrainHeight <-lineWidth <-fillRatio) ===== 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. 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 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. ===== Examples ===== SetTerrainLine(0 0 20 20 5 7 5 0.5) <=[[4rpl:start| Index]]