Skip to content

SetEntityFactionAction ​

Inherits: EventAction < Resource

Action to change the faction of a specific placed NPC, so it can turn friendly or hostile in the middle of a story

Properties ​

intentity_unique_id0
intfaction_id0

Variables ​

Entitytarget_entitynull

Methods ​

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

Property descriptions ​

int entity_unique_id = 0 ​

Unique ID of the NPC whose faction changes

int faction_id = 0 ​

The faction to set for the entity

Variable descriptions ​

Entity target_entity = null ​

Reference to the target entity

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