Difference between revisions of "EVENT TYPE UNEQUIP"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split off of event)
 
(changed in 1.04)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
*<b>Sent When:</b> The current creature has unequipped an item
+
{{event
*<b>Sent From:</b> engine
+
|sourcefile=script.ldf
*<b>Sent To:</b> creatures
+
|when= The current creature has unequipped an item
 
+
|from= [[engine]]
Parameters:
+
|to= [[creature]]s
*<b>Creator:</b> item being unequipped
+
|tocategory1=creature
 
+
|sortkey=UNEQUIP
[[Category:Event types|UNEQUIP]]
+
|creatorname=oCreator
 +
|creatordesc=creature doing the unequipping
 +
|object0name=oItem
 +
|object0desc=item being unequipped
 +
|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;
}