CONTENT CONTRACT · VERSION 1
ActorDiedEvent
A living actor's health reached zero (life transition, not despawn).
Signature
{ actor: ActorRef, definition: ActorDefinitionId, killer: (ActorRef)?, kind: "actor_died", player: (PlayerRef)? }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 |
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]+$ |