Skip to content

ModifyTerrain

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
Blitz3D

ModifyTerrain

ModifyTerrain:Void terrain:Int32, terrain_x:Int32, terrain_z:Int32, height:Float32, realtime:Int32=0
Parameter Mode Type Default Description
terrain In Int32 required The terrain.
terrain_x In Int32 required
terrain_z In Int32 required
height In Float32 required New height, 0 to 1.
realtime In Int32 0 True to apply the change immediately instead of at the next render. Defaults to False.

Description

Sets the height of one grid point of the terrain. Heights are between 0 and 1 and are clamped to that range; the real height in the world is the height times the terrain's Y scale. Calls with a grid position outside the terrain do nothing.

Differences

  • The realtime argument has no effect. Changes always show at the next RenderWorld.

Related Commands

CreateTerrain, LoadTerrain, TerrainDetail, TerrainHeight, TerrainShading, TerrainSize, TerrainX, TerrainY

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally