Skip to content

EntityDamageIncomingTrigger ​

Inherits: EventTrigger < Resource

Triggers when a specific entity is about to take damage (before mitigation)

Properties ​

intentity_unique_id0
Condition.CheckLogicdamage_check_logicCondition.CheckLogic.GREATER_EQUAL
floattarget_damage0.0
intdamage_type_filter0

Variables ​

Entitytarget_entitynull
Stringdisplay_name""

Methods ​

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

Property descriptions ​

int entity_unique_id = 0 ​

Unique identifier of the specific entity to track

Condition.CheckLogic damage_check_logic = Condition.CheckLogic.GREATER_EQUAL ​

Comparison logic for damage check

float target_damage = 0.0 ​

Damage amount to compare against

int damage_type_filter = 0 ​

Specific damage type filter (empty = any damage type)

Variable descriptions ​

Entity target_entity = null ​

Reference to the target entity

String display_name = "" ​

Entity name - will be auto-populated from the entity itself if found

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 entity in the world

bool meets_damage_condition( damage_amount: float ) ​

Check if the current damage meets the comparison logic

bool is_triggered( event_data: Dictionary ) ​

Check if this trigger is currently active

String generate_objective_description() ​

Generate quest objective description