02CE
Revision as of 18:24, 28 December 2008 by Spaceeinstein (talk | contribs)
{{{games}}}
- Description
- Gets the height of the ground beneath the coordinate
- Syntax
- {{{syntax1}}}
- Parameter
- Native analog
- GET_GROUND_Z_FOR_3D_COORD
This opcode can store the height in the Z-axis 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. The ground has to have a collision model. Note that the fourth parameter is placed in the beginning instead of at the end.
Sanny Builder example:
02CE: 3@ = ground_z_at 0@ 1@ 2@
Note
The above format is more commonly used. The actual format of this opcode is in order:
02CE=4,%1d% %2d% %3d% %4d%
The format to use depends on which INI file you use.
Keywords
get, store, ground, height