Difference between revisions of "EVENT TYPE DEATH"

From Dragon Age Toolset Wiki
Jump to: navigation, search
m (|sourcefile=script.ldf)
m (update template)
Line 4: Line 4:
 
|from= scripts
 
|from= scripts
 
|to= creatures, placeables
 
|to= creatures, placeables
 +
|tocategory1=creature
 +
|tocategory2=placeable
 +
|sortkey=DEATH
 
|creatorname= oKiller
 
|creatorname= oKiller
 
|creatordesc= killing object
 
|creatordesc= killing object
Line 9: Line 12:
  
 
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.
 
[[Category:Event types|DEATH]]
 

Revision as of 16:44, 6 August 2009

Source:
script.ldf
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.