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 ​
int | entity_id | 0 |
Vector3 | spawn_position | Vector3.ZERO |
Variables ​
NPC | spawned_entity | null |
Methods ​
String | get_function_description() |
Dictionary | save() |
void | load_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