Changes
Jump to navigation
Jump to search
Arg size.
! width="50" | ''B3 / B4''
! width="40" | ''A''
! width="8040" | ''X''! width="8040" | ''Y''! width="8040" | ''Z''! width="8040" | ''I''
|}
* '''const Bit[4]''' ''B3'': Bank to store ''Z''.
* '''const Bit[4]''' ''B4'': Bank to store ''I''.
* '''const ByteUByte''' ''A'': Entity ID whose field object will have its position retrieved from.* '''const ShortUByte''' ''X'': Address to store the X-coordinate of the entity's object.* '''const ShortUByte''' ''Y'': Address to store the Y-coordinate of the entity's object.* '''const ShortUByte''' ''Z'': Address to store the Z-coordinate of the entity's object.* '''const UShortUByte''' ''I'': Address to store the ID of the walkmesh triangle the object is standing on.
==== Description ====
Retrieves the coordinates of the field object that the entity, whose ID specified in ''A'', is associated with. This opcode uses an entity ID, not a field object offset; as such, if an entity ID is given that does not have a field object, this opcode will store zero in each of the four address specified.