on dead

From Arx Libertatis Wiki
Revision as of 04:51, 17 April 2020 by Ds (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.