Difference between revisions of "EVENT TYPE DEATH"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(split off of event)
 
(formatting)
Line 1: Line 1:
*<b>Sent When:</b> creature or placeable have the death effect applied (regardless of hitpoints)
+
{{event
*<b>Sent From:</b> scripts
+
|when= creature or placeable have the death effect applied (regardless of hitpoints)
*<b>Sent To:</b> creatures, placeables
+
|from= scripts
 +
|to= creatures, placeables
 +
|creatorname= oKiller
 +
|creatordesc= killing object
 +
}}
  
 
Handles shutdown of creature's AI, perception, etc. and replaces it with a bodybag.
 
Handles shutdown of creature's AI, perception, etc. and replaces it with a bodybag.
 
Parameters:
 
*<b>Creator:</b> killing object
 
  
 
[[Category:Event types|DEATH]]
 
[[Category:Event types|DEATH]]

Revision as of 17:36, 24 July 2009

Source:
[Undocumented]
Sent when:
creature or placeable have the death effect applied (regardless of hitpoints)
Sent from:
scripts
Sent to:
creatures, placeables
Parameters:
  • Creator: killing object

Usage

case EVENT_TYPE_DEATH:
{
object oKiller = GetEventCreator(ev); // killing object

// insert event-handling code here

break;
}

Handles shutdown of creature's AI, perception, etc. and replaces it with a bodybag.