Difference between revisions of "00A0"
Jump to navigation
Jump to search
m |
|||
Line 9: | Line 9: | ||
:: The handle of the character | :: The handle of the character | ||
: [''var1''] | : [''var1''] | ||
− | :: Variable to store x-coordinate | + | :: Variable to store the x-coordinate |
: [''var2''] | : [''var2''] | ||
− | :: Variable to store y-coordinate | + | :: Variable to store the y-coordinate |
: [''var3''] | : [''var3''] | ||
− | :: Variable to store z-coordinate | + | :: Variable to store the z-coordinate |
'''Native analog''' | '''Native analog''' | ||
: [[GET_CHAR_COORDINATES]] | : [[GET_CHAR_COORDINATES]] | ||
Line 20: | Line 20: | ||
== Keywords == | == Keywords == | ||
− | get, store, actor, character, position, coordinates | + | get, store, actor, character, position, coordinates, location |
== See also == | == See also == |
Latest revision as of 04:56, 8 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 the x-coordinate
- [var2]
- Variable to store the y-coordinate
- [var3]
- Variable to store the 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, location