EverambleGAME API / 1

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

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
factionContentIdFaction 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}$
groupNameSpawn group of the actor (`spawn.group`); absent: none, also for roaming encounters.
Length: 1…96; Pattern: ^[a-z][a-z0-9_]{0,95}$
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]+$
positionPositionPosition at the committed death, before despawning.