Index

GetTerrainVector

GetTerrainVector(<-cellX <-cellZ) ->vector

Description

Gets the integer height of the terrain at the specified integer map coordinates and returns it as the y position in a vector. A value of 0 means “void” or no terrain. The X and Z values of the vector are also filled in with the supplied cellX and cellZ arguments A value of -1 is returned if the terrain coordinate is outside the map.

Examples

GetTerrainVector(42 23) ->v
PrintAllSP(<-v.x <-v.y <-v.z)

Index