EverambleGAME API / 1

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

NameTypeMeaning
actorActorRefActing actor (human- or AI-controlled).
Length: 1…256; Pattern: ^[\s\S]+$
definitionActorDefinitionIdDefinition 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
killerActorRefActor whose damage caused the death; absent for environmental damage.
Length: 1…256; Pattern: ^[\s\S]+$
kind"actor_died"Discriminant
playerPlayerRefPlayer controlling the killer; absent for AI killers and environmental damage.
Length: 1…256; Pattern: ^[\s\S]+$