Skip to content

SpawnInteractableAction ​

Inherits: EventAction < Resource

Action to spawn a new dynamic interactable at a specific position Creates interactables that don't have UniqueInteractableData (can despawn)

Properties ​

intinteractable_id0
Vector3spawn_positionVector3.ZERO
Vector3spawn_rotationVector3.ZERO
intsummoner_entity_id0

Variables ​

InteractableObjectspawned_interactablenull
Entitysummonernull

Methods ​

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

Property descriptions ​

int interactable_id = 0 ​

Choose spawn method: true for category/scene, false for type

Vector3 spawn_position = Vector3.ZERO ​

Position to spawn the interactable at

Vector3 spawn_rotation = Vector3.ZERO ​

Optional rotation for the spawned interactable

int summoner_entity_id = 0 ​

Optional summoner entity (for effect-created interactables)

Variable descriptions ​

InteractableObject spawned_interactable = null ​

Reference to the spawned interactable

Entity summoner = null ​

The entity that summons the object, if any (found when the action runs).

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