EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

actor_died

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.

Validated example

{
  "actor": "b1",
  "definition": "core:hill_golem",
  "killer": "a1",
  "kind": "actor_died",
  "player": "p1",
  "position": {
    "map": "m1",
    "x_mm": 10000,
    "y_mm": 0,
    "z_mm": -20000
  }
}