Skip to content

SetInteractablePositionAction ​

Inherits: EventAction < Resource

Action to teleport/move an interactable to a specific position

Properties ​

intinteractable_unique_id0
Vector3target_positionVector3.ZERO
boolset_rotationfalse
Vector3target_rotationVector3.ZERO

Variables ​

InteractableObjecttarget_interactablenull

Methods ​

Stringget_function_description()
InteractableObjectfind_target_interactable()
Dictionarysave()
voidload_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