Skip to content

EntityInteractTrigger ​

Inherits: EventTrigger < Resource

Triggers when the player interacts with a specific NPC

Properties ​

intentity_unique_id0

Variables ​

Entitytarget_entitynull

Methods ​

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

Property descriptions ​

int entity_unique_id = 0 ​

The unique identifier of the specific NPC to track

Variable descriptions ​

Entity target_entity = null ​

Reference to the target NPC

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_entity() ​

Try to find the target NPC in the world

bool is_triggered( event_data: Dictionary ) ​

Check if this trigger is currently active

String generate_objective_description() ​

Generate quest objective description