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 ​
int | interactable_id | 0 |
Vector3 | spawn_position | Vector3.ZERO |
Vector3 | spawn_rotation | Vector3.ZERO |
int | summoner_entity_id | 0 |
Variables ​
InteractableObject | spawned_interactable | null |
Entity | summoner | null |
Methods ​
String | get_function_description() |
Dictionary | save() |
void | load_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