Difference between revisions of "01BB"
Jump to navigation
Jump to search
(New page: {{OpCode | ini = 01BB=4,%1d% %2d% %3d% %4d% | description = Gets the object's position | p1 = Existing object handle | p2 = Variable to store the X-coordinate | p...) |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{OpCode | {{OpCode | ||
− | | | + | | games = {{Icon|t}} |
− | | description = Gets the object's | + | | command = GET_OBJECT_COORDINATES |
− | | | + | | description = Gets the object's coordinates point |
− | | | + | | syntax1 = 01BB: store_object [''object handle''] position_to [''var1''] [''var2''] [''var3''] |
− | | | + | | p1t = [''object handle''] |
− | | | + | | p1d = The handle of the object |
− | + | | p2t = [''var1''] | |
+ | | p2d = Variable to store the x-coordinate | ||
+ | | p3t = [''var2''] | ||
+ | | p3d = Variable to store the y-coordinate | ||
+ | | p4t = [''var3''] | ||
+ | | p4d = Variable to store the z-coordinate | ||
| native = [[GET_OBJECT_COORDINATES]] | | native = [[GET_OBJECT_COORDINATES]] | ||
}} | }} | ||
− | ==Keywords== | + | |
− | store | + | This opcode gets the x, y, and z-coordinates of the center of mass of the object. |
+ | |||
+ | == Example == | ||
+ | :''See [[0392#Example]]'' | ||
+ | |||
+ | == Keywords == | ||
+ | get, store, object, position, coordinates, location | ||
+ | |||
+ | == See also == | ||
+ | * {{Icon|t}} [[01BC]], sets the object's coordinates |
Latest revision as of 05:40, 1 February 2017
- Description
- Gets the object's coordinates point
- Syntax
- 01BB: store_object [object handle] position_to [var1] [var2] [var3]
- Parameter
- [object handle]
- The handle of the object
- [var1]
- Variable to store the x-coordinate
- [var2]
- Variable to store the y-coordinate
- [var3]
- Variable to store the z-coordinate
- Native analog
- GET_OBJECT_COORDINATES
This opcode gets the x, y, and z-coordinates of the center of mass of the object.
Example
- See 0392#Example
Keywords
get, store, object, position, coordinates, location
See also
- 01BC, sets the object's coordinates