EVENT TYPE UNEQUIP

From Dragon Age Toolset Wiki
Jump to: navigation, search
Source:
script.ldf
Sent when:
The current creature has unequipped an item
Sent from:
engine
Sent to:
creatures
Parameters:
  • Creator: creature doing the unequipping
  • Integer 0: [Undocumented]
  • Object 0: item being unequipped

Usage

case EVENT_TYPE_UNEQUIP:
{
object oCreator = GetEventCreator(ev); // creature doing the unequipping
int nInventorySlot = GetEventInteger(ev, 0); //
object oItem = GetEventObject(ev, 0); // item being unequipped

// insert event-handling code here

break;
}