Difference between revisions of "02CE"
Jump to navigation
Jump to search
(updating page) |
|||
| Line 1: | Line 1: | ||
| − | {{ | + | {{Icon|trilogy}} '''GET_GROUND_Z_FOR_3D_COORD''' |
| − | | | + | <hr /> |
| − | + | <onlyinclude>{{#ifeq:{{{transcludesection|opcode}}}|opcode| | |
| − | + | '''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 File|collision]] beneath the point. If there is no solid ground below the point, the height would be stored as 0. | |
| − | + | }}</onlyinclude> | |
| − | |||
| − | |||
| − | ==Keywords== | + | == Keywords == |
get, store, ground, height | get, store, ground, height | ||
[[Category:OpCodes]] | [[Category:OpCodes]] | ||
Revision as of 21:10, 10 January 2012
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
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