FANDOM


(PC -> creature)
(Death can come from any type of object, and "destroys" was a poor choice of words.)
 
Line 1: Line 1:
The '''OnDeath''' event is fired when a [[creature]] destroys another creature or a [[placeable]] or [[door]].
+
The '''OnDeath''' event is fired when an [[object]] is killed.
  +
This does not include objects destroyed via <code>[[DestroyObject]]()</code>.
   
==Objects which define this Event==
+
== Objects that define this event ==
 
* [[Door event|Doors]]
 
* [[Door event|Doors]]
 
* [[Placeable event|Placeables]]
 
* [[Placeable event|Placeables]]
 
* [[Creature event|Creatures]]
 
* [[Creature event|Creatures]]
   
==Related Functions==
+
== Related functions ==
 
* [http://www.nwnlexicon.com/compiled/function.getlastkiller.html GetLastKiller]
 
* [http://www.nwnlexicon.com/compiled/function.getlastkiller.html GetLastKiller]
 
[[Category:Events]][[Category:Door events]][[Category:Placeable events]][[Category:Creature events]]
 
[[Category:Events]][[Category:Door events]][[Category:Placeable events]][[Category:Creature events]]

Latest revision as of 10:30, December 6, 2012

The OnDeath event is fired when an object is killed. This does not include objects destroyed via DestroyObject().

Objects that define this event Edit

Related functions Edit

Community content is available under CC-BY-SA unless otherwise noted.