Difference between revisions of "EVENT TYPE UNEQUIP"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (remove redundant category)
(changed in 1.04)
 
Line 6: Line 6:
 
|tocategory1=creature
 
|tocategory1=creature
 
|sortkey=UNEQUIP
 
|sortkey=UNEQUIP
|creatorname= oItem
+
|creatorname=oCreator
|creatordesc= item being unequipped
+
|creatordesc=creature doing the unequipping
|object0name=oCreator
+
|object0name=oItem
 +
|object0desc=item being unequipped
 
|int0name=nInventorySlot
 
|int0name=nInventorySlot
 
}}
 
}}

Latest revision as of 11:19, 9 August 2010

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;
}