Difference between revisions of "EVENT TYPE DYING"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (|sourcefile=events_h)
m (remove redundant category)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
 
|from= [[effect_death_h]]
 
|from= [[effect_death_h]]
 
|to= the creature getting the killing blow.
 
|to= the creature getting the killing blow.
|to1=creature
+
|tocategory1=creature
 
|object0name = oKiller
 
|object0name = oKiller
 
|object0desc= object delivering the killing blow
 
|object0desc= object delivering the killing blow

Latest revision as of 00:52, 12 February 2010

Source:
events_h
Sent when:
a creature received the killing blow.
Sent from:
effect_death_h
Sent to:
the creature getting the killing blow.
Parameters:
  • Object 0: object delivering the killing blow

Usage

case EVENT_TYPE_DYING:
{
object oKiller = GetEventObject(ev, 0); // object delivering the killing blow

// insert event-handling code here

break;
}
creature_core handles XP and treasure awards.