Difference between revisions of "00A0"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
− | {{Icon| | + | {{Icon|t}} '''GET_CHAR_COORDINATES''' |
<hr /> | <hr /> | ||
'''Description''' | '''Description''' | ||
− | : Gets the coordinates | + | : Gets the character's coordinates point |
'''Syntax''' | '''Syntax''' | ||
: 00A0: store_actor [''char handle''] position_to [''var1''] [''var2''] [''var3''] | : 00A0: store_actor [''char handle''] position_to [''var1''] [''var2''] [''var3''] | ||
Line 17: | Line 17: | ||
: [[GET_CHAR_COORDINATES]] | : [[GET_CHAR_COORDINATES]] | ||
− | This opcode stores the x, y, and z-coordinates of the center of mass of the character's body. It | + | This opcode stores the x, y, and z-coordinates of the center of mass of the character's body. It is roughly +1.04 z higher than the z-coordinate of the character's feet, which is used when setting the character's coordinates using [[00A1]]. If the character is in a vehicle, the opcode gets the coordinates of the center of mass of the vehicle's body instead. |
== Keywords == | == Keywords == | ||
− | get, store, actor, position | + | get, store, actor, character, position, coordinates |
== See also == | == See also == | ||
− | * [[ | + | * {{Icon|3}} {{Icon|VC}} [[0054]], gets the player's coordinates |
− | + | * {{Icon|t}} [[00A1]], sets the character's coordinates | |
− | * [[ | + | * {{Icon|t}} [[00AA]], gets the vehicle's coordinates |
− | * [[00AA]], gets the vehicle's coordinates | + | * {{Icon|t}} [[01BB]], gets the object's coordinates |
− | * [[01BB]], gets the object's coordinates | ||
[[Category:OpCodes]] | [[Category:OpCodes]] |
Revision as of 06:49, 7 December 2015
Description
- Gets the character's coordinates point
Syntax
- 00A0: store_actor [char handle] position_to [var1] [var2] [var3]
Parameter
- [char handle]
- The handle of the character
- [var1]
- Variable to store x-coordinate
- [var2]
- Variable to store y-coordinate
- [var3]
- Variable to store z-coordinate
Native analog
This opcode stores the x, y, and z-coordinates of the center of mass of the character's body. It is roughly +1.04 z higher than the z-coordinate of the character's feet, which is used when setting the character's coordinates using 00A1. If the character is in a vehicle, the opcode gets the coordinates of the center of mass of the vehicle's body instead.
Keywords
get, store, actor, character, position, coordinates