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

From QhimmWiki
Jump to navigation Jump to search
Qhimm>Aali
(Created page with "* Opcode: '''0x300''' * Name: set active entity from model id * Two-word opcode: No ==== Parameters ==== {| border="1" cellspacing="1" cellpadding="3" style="border: 1px sol...")
 
ffrtt>BukTop
m (3 revisions imported)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* Opcode: '''0x300'''
* Opcode: '''0x300'''
* Name: set active entity from model id
* Name: load model
* Two-word opcode: No
* Two-word opcode: No


Line 12: Line 12:
| Stack
| Stack
| Model ID
| Model ID
| Model to set as active entity
| Model to load into the map
|}
|}


==== Notes ====
==== Notes ====


Sets the active entity for this context to the entity representing the specified model. The chosen entity remains the active entity until a new entity is selected or the function returns.
Loads a model into the map and runs its initialization function.


This function does extra work that could be some kind of initialization routine. There might be more to this instruction.
The current active entity will be changed to the entity representing the specified model.

Latest revision as of 04:21, 23 May 2019

  • Opcode: 0x300
  • Name: load model
  • Two-word opcode: No

Parameters

Location Name Description
Stack Model ID Model to load into the map

Notes

Loads a model into the map and runs its initialization function.

The current active entity will be changed to the entity representing the specified model.