FANDOM


 
(Death can come from any type of object, and "destroys" was a poor choice of words.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The '''OnDeath''' event is fired when a [[Player Character]] destroys either a [[creature]], [[placeable]], or [[door]].
+
The '''OnDeath''' event is fired when an [[object]] is killed.
  +
This does not include objects destroyed via <code>[[DestroyObject]]()</code>.
   
+
== Objects that define this event ==
==Obects which 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]
* [[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.