02CE

From GTAMods Wiki
Revision as of 21:10, 10 January 2012 by Spaceeinstein (talk | contribs) (updating page)
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

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

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