SetEntityBehaviorScriptAction ​
Inherits: EventAction < Resource
Action to change an entity's behavior script at runtime Uses ListCatalog to select from available behavior scripts
Properties ​
int | entity_unique_id | 0 |
int | behavior_script_id | 0 |
Variables ​
Entity | target_entity | null |
ModularBehaviorScript | new_behavior_script | null |
Methods ​
String | get_function_description() |
Dictionary | save() |
void | load_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