CreateTerrain
Creates a terrain.
CreateTerrain ( grid_size[,parent] )
Parameters
- grid_size
- how many squares along each side, from 2 to 4096.
- parent (optional)
- an entity to attach it to, or 0 for none.
Description
Creates a flat terrain and gives back its handle: a square grid of heights, shaped with ModifyTerrain. It spreads from its position across and into the screen by one unit per grid square, with heights from 0 to 1, so it usually wants a ScaleEntity, such as ScaleEntity land, 4, 100, 4.
