Skip to content

DamageInteractableAction ​

Inherits: EventAction < Resource

Action to deal damage to a destructible object

Properties ​

intinteractable_unique_id0
intdamage_amount10
intdamage_type0

Variables ​

InteractableObjecttarget_destructiblenull

Methods ​

Stringget_function_description()
InteractableObjectfind_target_destructible()
Dictionarysave()
voidload_data( data: Dictionary )

Property descriptions ​

int interactable_unique_id = 0 ​

ID of the destructible object to damage

int damage_amount = 10 ​

Amount of damage to deal

int damage_type = 0 ​

Type of damage

Variable descriptions ​

InteractableObject target_destructible = null ​

Reference to the target destructible

Method descriptions ​

String get_function_description() ​

Return a description of this action with parameter placeholders

InteractableObject find_target_destructible() ​

Find the target destructible by ID

Dictionary save() ​

Save action state to a dictionary

void load_data( data: Dictionary ) ​

Load action state from a dictionary