AddUnit
Revision as of 18:52, 15 January 2014 by Xifanie (talk | contribs) (Created page with "= {45} {{IE_45}} = {{IE_45_ex}} {{IE_45_desc}} This instruction can be either placed inside a {49} {{IE_49}}/{4A} {{IE_4A}}...")
{45} AddUnit
AddUnit(xID,x00,xDR)
Adds a unit to the event that is not currently loaded.
This instruction can be either placed inside a {49} AddUnitStart/{4A} AddUnitEnd block, or have it followed by {4B} WaitAddUnitEnd to make sure the event proceeds normally.
See also: {44} Draw ― {47} AddGhostUnit ― {49} AddUnitStart ― {4A} AddUnitEnd ― {4B} WaitAddUnitEnd
Unit ID : Byte (hex)
ID of the unit specified in the ENTD.
x00 : Byte (hex)
This value is always set to x00 in the original game; it probably doesn't have a function.
Drawing : Byte (hex)
- x00: Draw immediately
- x01: Hold in memory (use {44} Draw later)