Difference between revisions of "02CE"
Jump to navigation
Jump to search
| Line 8: | Line 8: | ||
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. | 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:<br> | ||
| + | <code>02CE=4,%4d% %1d% %2d% %3d%</code><br> | ||
| + | The fourth parameter is placed in the beginning instead of at the end. This depends on which sascm.ini file you use.<br> | ||
| + | [[Mission_Scripting_%28Overview%29#Sanny_Builder|Sanny Builder]] by default: | ||
| + | <code>02CE: 16@ = ground_z_at 2@ 3@ 4@</code> | ||
==Keywords== | ==Keywords== | ||
Revision as of 19:25, 15 May 2007
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