CONTENT CONTRACT · VERSION 1
ActorDiedEvent
A living actor's health reached zero (life transition, not despawn).
Signature
{ actor: ActorRef, definition: ActorDefinitionId, faction: (ContentId)?, group: (Name)?, killer: (ActorRef)?, kind: "actor_died", player: (PlayerRef)?, position: Position }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Acting actor (human- or AI-controlled). Length: 1…256; Pattern: ^[\s\S]+$ |
definition | ActorDefinitionId | Definition the actor instantiates, resolved when the event was created. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: character|npc|enemy|animal|structure |
faction | ContentId | Faction of the actor when it died; absent: none. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
group | Name | Spawn group of the actor (`spawn.group`); absent: none, also for roaming encounters. Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$ |
killer | ActorRef | Actor whose damage caused the death; absent for environmental damage. Length: 1…256; Pattern: ^[\s\S]+$ |
kind | "actor_died" | Discriminant |
player | PlayerRef | Player controlling the killer; absent for AI killers and environmental damage. Length: 1…256; Pattern: ^[\s\S]+$ |
position | Position | Position at the committed death, before despawning. |