FF7/Field/Script/Opcodes/B7 GETDIR

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Revision as of 05:18, 23 May 2019 by BukTop (talk | contribs) (2 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • Opcode: 0xB7
  • Short name: GETDIR
  • Long name: Get Entity Direction

Memory layout

0xB7 B E A

Arguments

  • const UByte B: Bank to store direction.
  • const UByte E: Entity ID to retrieve.
  • const UByte A: Address to store direction.

Description

Fetches the direction of the entity given by E into bank B, address A. E is an offset into the entity list, not a visible object ID, and therefore includes non-visible entities; retrieving the direction of a non-visible entity results in unusual values being retrieved.