Skip to content

SetVehicleHijackableAction ​

Inherits: EventAction < Resource

Makes a vehicle (a placed NPC with a Mount interaction) hijackable or not: a hostile vehicle that is hijackable can be boarded and taken over by the characters it is hostile to. A story can open a tank to the player after a quest step, or lock it again.

Properties ​

intentity_unique_id0
boolhijackabletrue

Variables ​

Entitytarget_entitynull

Methods ​

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

Property descriptions ​

int entity_unique_id = 0 ​

Unique ID of the vehicle

bool hijackable = true ​

Can it be hijacked from now on

Variable descriptions ​

Entity target_entity = null ​

Reference to the vehicle

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