Skip to content

PlayerInputTrigger ​

Inherits: EventTrigger < Resource

Triggers when the player uses a specific input action

Properties ​

Stringinput_action""

Methods ​

Stringget_display_name()
Stringget_function_description()
Array[String]get_all_input_actions() static
voidsetup()
voidcleanup()
boolis_triggered( event_data: Dictionary )
Stringgenerate_objective_description()

Property descriptions ​

String input_action = "" ​

The input action name from InputMap

Method descriptions ​

String get_display_name() ​

Return the display name for this trigger

String get_function_description() ​

Return the function description with parameter placeholders

Array[String] get_all_input_actions() ​

Get all available input actions from InputMap

void setup() ​

Set up any listeners or connections needed by this trigger

void cleanup() ​

Clean up any listeners or connections

bool is_triggered( event_data: Dictionary ) ​

Check if this trigger is currently active

String generate_objective_description() ​

Generate quest objective description