Skip to content

ObjectLockedStateChangeTrigger ​

Inherits: EventTrigger < Resource

Triggers when a specific object is locked or unlocked

Properties ​

intinteractable_unique_id0
LockStateTriggerTypetrigger_onLockStateTriggerType.UNLOCKED

Variables ​

InteractableObjecttarget_objectnull

Methods ​

Stringget_display_name()
Stringget_function_description()
voidsetup()
voidcleanup()
voidfind_target_object()
boolis_triggered( event_data: Dictionary )
Stringgenerate_objective_description()

Enumerations ​

enum LockStateTriggerType ​

The options of lock state trigger type: locked, unlocked.

  • LOCKED = 0

Property descriptions ​

int interactable_unique_id = 0 ​

The object ID to track

LockStateTriggerType trigger_on = LockStateTriggerType.UNLOCKED ​

Whether to trigger on locking or unlocking

Variable descriptions ​

InteractableObject target_object = null ​

Reference to the target interactable object

Method descriptions ​

String get_display_name() ​

Return the display name for this trigger

String get_function_description() ​

Return the function description with parameter placeholders

void setup() ​

Set up any listeners or connections needed by this trigger

void cleanup() ​

Clean up any listeners or connections

void find_target_object() ​

Try to find the target object in the world

bool is_triggered( event_data: Dictionary ) ​

Check if this trigger is currently active

String generate_objective_description() ​

Generate quest objective description