SetInteractablePositionAction ​
Inherits: EventAction < Resource
Action to teleport/move an interactable to a specific position
Properties ​
int | interactable_unique_id | 0 |
Vector3 | target_position | Vector3.ZERO |
bool | set_rotation | false |
Vector3 | target_rotation | Vector3.ZERO |
Variables ​
InteractableObject | target_interactable | null |
Methods ​
String | get_function_description() |
InteractableObject | find_target_interactable() |
Dictionary | save() |
void | load_data( data: Dictionary ) |
Property descriptions ​
int interactable_unique_id = 0 ​
ID of the interactable to move
Vector3 target_position = Vector3.ZERO ​
Target position to move the interactable to
bool set_rotation = false ​
Whether to also set rotation
Vector3 target_rotation = Vector3.ZERO ​
Target rotation (if set_rotation is true)
Variable descriptions ​
InteractableObject target_interactable = null ​
Reference to the target interactable
Method descriptions ​
String get_function_description() ​
Return a description of this action with parameter placeholders
InteractableObject find_target_interactable() ​
Find the target interactable by ID
Dictionary save() ​
Save action state to a dictionary
void load_data( data: Dictionary ) ​
Load action state from a dictionary