event_death |
Discworld events help |
event_death |
Name
event_death - Called when an object dies.
Syntax
void event_death(object ob, object *killers, object killer, string room_mess, string killer_mess);
Description
This is the function called on things when something dies in them or in their environment. The ob argument is the thing that actually dies. The killers argument is an array containing all the objects in the attacker array. The killer argument is the object that struck the death blow. The room_mess and killer_mess arguments are the messages printed to the room and the killer, respectively.
Examples:
void event_death(object ob, object *killers, object killer, string room_mess,
string killer_mess);
if (ob->query_creator()) {
killer->do_command ("say Another filthy creator bites the dust!");
}
} /* event_death() */
See also
do_death, death_helper, second_life