Difference between revisions of "FF7/WorldMap Module/Script/Opcodes/309"

From Final Fantasy Inside
Jump to navigation Jump to search
my_wiki>Aali
m (4 revisions imported)
 
(2 intermediate revisions by 2 users not shown)
Line 21: Line 21:
 
==== Notes ====
 
==== Notes ====
  
Sets the active entity's coordinates within its mesh, X and Z are numbers between 0 and 8192 (the size of one mesh).
+
Sets the active entity's coordinates within its mesh, X and Z are numbers between 0 and 8191 (the size of one mesh).
  
 
World coordinates can be calculated as mesh coordinates << 13 + coordinates in mesh or mesh coordinates << 13 | coordinates in mesh (coordinates in mesh can be thought of as the lower 13 bits while mesh coordinates are the upper bits).
 
World coordinates can be calculated as mesh coordinates << 13 + coordinates in mesh or mesh coordinates << 13 | coordinates in mesh (coordinates in mesh can be thought of as the lower 13 bits while mesh coordinates are the upper bits).

Latest revision as of 05:21, 23 May 2019

  • Opcode: 0x309
  • Name: set active entity coordinates in mesh
  • Two-word opcode: No

Parameters

Location Name Description
Stack X X coordinate in mesh
Stack Z Z coordinate in mesh

Notes

Sets the active entity's coordinates within its mesh, X and Z are numbers between 0 and 8191 (the size of one mesh).

World coordinates can be calculated as mesh coordinates << 13 + coordinates in mesh or mesh coordinates << 13 | coordinates in mesh (coordinates in mesh can be thought of as the lower 13 bits while mesh coordinates are the upper bits).