How to Use a Creature's Events
------------------------------------------
Creature Events are script triggers that fire when things to happen to a creature, such as when they get hit by a weapon, cast a force cast at them, or when they die. Rather than reinvent the wheel, most if not all of the pertinent information can be found in Bioware's scripting forums.
Specifically:
(read this first)
The UserDefined Event Is Your Friend
by David Gaider Friday, 05 July 2002 03:12AM
and
Using Creature Events
by David Gaider Friday, 05 July 2002 03:31AM
The generic OnSpawn script is k_def_spawn01.nss and the generic user-defined script is k_def_userdef01.nss both of which can be found in scripts.bif.