Skip to content

SpawnEntityAction ​

Inherits: EventAction < Resource

Action to spawn a new entity (NPC) at a specific position Creates a dynamic entity (no unique ID) that can despawn

Properties ​

intentity_id0
Vector3spawn_positionVector3.ZERO

Variables ​

NPCspawned_entitynull

Methods ​

Stringget_function_description()
Dictionarysave()
voidload_data( data: Dictionary )

Property descriptions ​

int entity_id = 0 ​

Entity ID from DatabaseEntities to spawn

Vector3 spawn_position = Vector3.ZERO ​

Position to spawn the entity at

Variable descriptions ​

NPC spawned_entity = null ​

Reference to the spawned entity

Method descriptions ​

String get_function_description() ​

Return a description of this action with parameter placeholders

Dictionary save() ​

Save action state to a dictionary

void load_data( data: Dictionary ) ​

Load action state from a dictionary