Gameplay::getGroundZFor3dCoord
Gets the ground elevation at the specified position. Note that if the specified position is below ground level, the function will output zero!
x: Position on the X-axis to get ground elevation at.
y: Position on the Y-axis to get ground elevation at.
z: Position on the Z-axis to get ground elevation at.
groundZ: The ground elevation at the specified position.
unk: Nearly always false, very rarely true in the scripts.
Syntax
mp.game.gameplay.getGroundZFor3dCoord(x, y, z, groundZ, unk);
Required Arguments
- x: float
- y: float
- z: float
- groundZ: float
- unk: Boolean
Return value
- float
Example
// todo