FF7/Field/Script/Opcodes/AA MOVA

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Revision as of 17:34, 22 October 2020 by Dangarfield (talk | contribs)
Jump to navigation Jump to search
  • Opcode: 0xAA
  • Short name: MOVA
  • Long name: Move to Entity

Memory layout

0xAA E

Arguments

  • const UByte E: Entity ID to move towards.

Description

Moves the field object towards the entity with the given ID. Note that this is not a field object ID, in that the entity ID includes non-visible entities; in other words, this is an offset to an entity in the entire entity list, not just the visible entity list. However, attempting to move the field object to an entity that is not visible will fail, in that the MOVA opcode is ignored.

Also, the movement of the model comes up to the point of collision between the source and target models. It does not go all the way to the target models' position.