FF7/WorldMap Module/Script/Opcodes/312
< FF7 | WorldMap Module | Script | Opcodes
Jump to navigation
Jump to search
Revision as of 17:48, 5 August 2014 by my_wiki>Aali (Created page with "* Opcode: '''0x312''' * Name: set light coordinates in mesh * Two-word opcode: No ==== Parameters ==== {| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid...")
- Opcode: 0x312
- Name: set light 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 point's coordinates within its mesh, X and Z are numbers between 0 and 8192 (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).