Difference between revisions of "FF7/Field/Script/Opcodes/AB TURA"

From Final Fantasy Inside
< FF7‎ | Field‎ | Script‎ | Opcodes
Jump to navigation Jump to search
my_wiki>Akari
 
my_wiki>BukTop
m (1 revision imported)
(No difference)

Revision as of 12:34, 4 April 2018

  • Opcode: 0xAB
  • Short name: TURA
  • Long name: Turn to entity

Memory layout

0xB4 Entity id Rotate side type Steps in rotation

Arguments

  • const Bit[4] Entity id: Entity id to which model we calculate direction during first opcode call.
  • const Short Rotate side type: Specify how model will be rotated. (0 - clockwise/ 1 - anti-clockwise/ 2 - closest)
  • const Short Steps in rotation: Set number of steps in rotation.

Description

Rotation calculated line in TUGNGEN, except end direction calculated during first opcode call. Rotation always calculated smoothly. Like in TURNGEN(XX,XX,XX,XX,02); This opcode will be called until turn is over and then continue script execution.