Skip to content

SetEntityBehaviorScriptAction ​

Inherits: EventAction < Resource

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

Properties ​

intentity_unique_id0
intbehavior_script_id0

Variables ​

Entitytarget_entitynull
ModularBehaviorScriptnew_behavior_scriptnull

Methods ​

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

Property descriptions ​

int entity_unique_id = 0 ​

Unique ID of the entity to change behavior

int behavior_script_id = 0 ​

ID of the behavior script from DatabaseBehaviors

Variable descriptions ​

Entity target_entity = null ​

References

ModularBehaviorScript new_behavior_script = null ​

The behavior 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