Scripting/Client/Functions/GetGroundZLevelForPos
Ground height at that x/y (z is a search-start hint). Only known where the map is loaded (around the player): far away or on another island it returns 0.
Syntax
GetGroundZLevelForPos(x, y, z)GetGroundZLevelForPos(position)Arguments
- float x
- float y
- float z
- Vector position
Returns
float
Example
function onScriptLoad()
{
local pos = player.Pos;
local result = GetGroundZLevelForPos( pos.x, pos.y, pos.z );
MessagePlayer( "GetGroundZLevelForPos returned: " + result, player );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- GetScreenWidth
- WorldPosToScreen
- ScreenPosToWorld
- GetGroundZLevel
- GetGroundZLevelForPosLoad
- Draw3DText
- Draw3DSprite
- Draw3DTextWorld
- Draw3DSpriteWorld
- SetCameraMatrix
- SetCameraTarget
- RestoreCamera
Section: Screen, world and camera
Categories: Client functions | Screen, world and camera