on dead

From Arx Libertatis Wiki
Jump to navigation Jump to search

The dead script event is sent without a sender to every NPC periodically when dead. This event never has any parameters.

Each entity has a heartbeat event that it receives periodically. By default the main event is sent but for dead NPCs it is changed to dead (and most events are blocked). Scripts can set a custom heartbeat event using setmainevent or setstatus.