02CE

From GTAMods Wiki
Jump to navigation Jump to search

02CE=4,%1d% %2d% %3d% %4d%
Description: Gets the height of the ground below the point
Parameter 1: X-coordinate
Parameter 2: Y-coordinate
Parameter 3: Z-coordinate
Parameter 4: Variable to store height of ground
Supports: GTA3, Vice City, San Andreas

This opcode can store the height of the ground below a specific point in the game. If there is no solid ground below that point, the height would be considered as 0.

Note

Sometimes this opcode is written as this:
02CE=4,%4d% %1d% %2d% %3d%
The fourth parameter is placed in the beginning instead of at the end. This depends on which sascm.ini file you use.
Sanny Builder by default: 02CE: 16@ = ground_z_at 2@ 3@ 4@

Keywords

get, store, ground, height