Page tree
Skip to end of metadata
Go to start of metadata



This command / function has no effect and / or is disabled in VBS4.

Introduced in

Version:1.00

Description

Description:

Changes a terrain cell height or river cell height.

Note: Height modifications are transferred using the network. By default, maps without river technology have the river level set to -50.

Syntax

Syntax:setTerrainHeight [x, y, z, fastSnowGen, affectRivers]
Parameters:
  • x: Number - X-coordinate of cell to change.
  • y: Number - Y-coordinate of cell to change.
  • z: Number - New ASL height of cell.
  • fastSnowGen: Boolean - If true, segments generation does not have to wait for snow (optional, default: false) (V3.8+).
  • affectRivers: Boolean - Determines whether terrain (false) or river (true) heights should be modified (pptional, default: false) (V3.8+).
Return Value:Nothing

Examples

Examples:
setTerrainHeight [getpos player select 0,getpos player select 1,20];

setTerrainHeight [getpos player select 0,getpos player select 1,20,true,true];

Additional Information

See also: terrainHeightArea, setTerrainHeightArea, resetTerrainHeights, setFlattenGround
Multiplayer:
Problems:

Notes