Difference between revisions of "EVENT TYPE EQUIP"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (|sourcefile=script.ldf)
(update template)
Line 4: Line 4:
 
|from= [[engine]]
 
|from= [[engine]]
 
|to= [[creature]]s
 
|to= [[creature]]s
 +
|tocategory1=creature
 +
|sortkey=EQUIP
 
|creatorname = oEquipper
 
|creatorname = oEquipper
 
|creatordesc= The object equipping an item
 
|creatordesc= The object equipping an item
Line 9: Line 11:
 
|object0desc= The item being equipped
 
|object0desc= The item being equipped
 
}}
 
}}
 
[[Category:Event types|EQUIP]]
 

Revision as of 17:01, 6 August 2009

Source:
script.ldf
Sent when:
The current creature has equipped an item
Sent from:
engine
Sent to:
creatures
Parameters:
  • Creator: The object equipping an item
  • Object 0: The item being equipped

Usage

case EVENT_TYPE_EQUIP:
{
object oEquipper = GetEventCreator(ev); // The object equipping an item
object oItem = GetEventObject(ev, 0); // The item being equipped

// insert event-handling code here

break;
}