EVENT TYPE INVENTORY ADDED

From Dragon Age Toolset Wiki
Revision as of 18:12, 24 July 2009 by BryanDerksen (Talk | contribs) (formatting)

Jump to: navigation, search
Source:
[Undocumented]
Sent when:
An item is added to the personal inventory of the object receiving the event or the party inventory.
Sent from:
engine
Sent to:
creatures, placeables, player/party
Parameters:
  • Creator: old owner of the item, OBJECT_INVALID if item is created on object
  • Object 0: item being added

Usage

case EVENT_TYPE_INVENTORY_ADDED:
{
object oOldOwner = GetEventCreator(ev); // old owner of the item, OBJECT_INVALID if item is created on object
object oItem = GetEventObject(ev, 0); // item being added

// insert event-handling code here

break;
}