Skip to content

SetEntityCombatScriptAction ​

Inherits: EventAction < Resource

Action to change an entity's combat script at runtime Uses ListCatalog to select from available combat scripts

Properties ​

intentity_unique_id0
intcombat_script_id0

Variables ​

Entitytarget_entitynull
ModularCombatScriptnew_combat_scriptnull

Methods ​

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

Property descriptions ​

int entity_unique_id = 0 ​

Unique ID of the entity to change combat script

int combat_script_id = 0 ​

ID of the combat script from DatabaseBehaviors

Variable descriptions ​

Entity target_entity = null ​

References

ModularCombatScript new_combat_script = null ​

The combat script the entity gets.

Method descriptions ​

String get_function_description() ​

Return a description of this action with parameter placeholders

Dictionary save() ​

Save action state to a dictionary

void load_data( data: Dictionary ) ​

Load action state from a dictionary