Difference between revisions of "02CE"

From GTAMods Wiki
Jump to navigation Jump to search
(updating page)
Line 7: Line 7:
 
: 02CE: [''var''] = ground_z [''flt1''] [''flt2''] [''flt3'']
 
: 02CE: [''var''] = ground_z [''flt1''] [''flt2''] [''flt3'']
 
'''Parameter'''
 
'''Parameter'''
: [''var'']
 
:: Variable to store the height of the ground as a floating-point value
 
 
: [''flt1'']
 
: [''flt1'']
 
:: X-coordinate
 
:: X-coordinate
Line 15: Line 13:
 
: [''flt3'']
 
: [''flt3'']
 
:: Z-coordinate
 
:: Z-coordinate
 +
: [''var'']
 +
:: Variable to store the height of the ground as a floating-point value
 
'''Native analog'''
 
'''Native analog'''
 
: [[GET_GROUND_Z_FOR_3D_COORD]]
 
: [[GET_GROUND_Z_FOR_3D_COORD]]

Revision as of 00:25, 20 November 2016

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