Changes

Jump to navigation Jump to search

FF7/Field/Script/Opcodes/B7 GETDIR

787 bytes added, 01:44, 13 September 2006
no edit summary
* Opcode: '''0xB7'''
* Short name: '''GETDIR'''
* Long name: Get Entity Direction

==== Memory layout ====
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
! width="40" | 0xB7
! width="40" | ''B''
! width="40" | ''E''
! width="40" | ''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.

Navigation menu