Difference between revisions of "FF7/Field/Script/Opcodes/AA MOVA"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
m (2 revisions imported)
 
(One intermediate revision by the same user not shown)
Line 16: Line 16:
  
 
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.
 
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.
 +
 +
The moved entity also has to take a path adhering to the current active triangles on the walkmesh

Latest revision as of 19:15, 26 October 2020

  • 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.

The moved entity also has to take a path adhering to the current active triangles on the walkmesh