02CE

From GTAMods Wiki
Revision as of 00:25, 20 November 2016 by Link2012 (talk | contribs)
Jump to navigation Jump to search

GTA III Vice City San Andreas GET_GROUND_Z_FOR_3D_COORD


Description

Gets the height of the ground beneath the coordinates point

Syntax

02CE: [var] = ground_z [flt1] [flt2] [flt3]

Parameter

[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate
[var]
Variable to store the height of the ground as a floating-point value

Native analog

GET_GROUND_Z_FOR_3D_COORD

This opcode can store the height in the Z-axis of the ground below the specific coordinates point. There can only be a ground if there is a collision beneath the point. If there is no solid ground below the point, the height would be stored as 0.

Keywords

get, store, ground, height