User Tools

Site Tools


4rpl:commands:getterrainvector

This is an old revision of the document!


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

4rpl/commands/getterrainvector.1700436217.txt.gz · Last modified: 2025/02/14 14:56 (external edit)