CONTENT CONTRACT · VERSION 1
actor_spawned
A new actor entered the world.
Signature
{ actor: ActorRef, cause: SpawnCause, definition: ActorDefinitionId, kind: "actor_spawned" }Fields
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Acting actor (human- or AI-controlled). Length: 1…256; Pattern: ^[\s\S]+$ |
cause | SpawnCause | Why the actor was spawned. |
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 |
kind | "actor_spawned" | Discriminant |
Validated example
{
"actor": "b1",
"cause": {
"handler": {
"binding": "core:hill_golem_lair_entered",
"kind": "binding"
},
"invocation_id": "i1",
"kind": "script",
"spawn_key": "golem"
},
"definition": "core:hill_golem",
"kind": "actor_spawned"
}