Skip to content

MountEntityAction ​

Inherits: EventAction < Resource

Puts an NPC on a mount or a vehicle (both placed NPCs): a rider who climbs on a horse, a gunner who takes the turret of a wagon. The NPC sits on the seat you give, or the first seat that is free, and the seat's AI (if it has one) acts for it. A hostile vehicle that is not hijackable refuses an NPC of an enemy faction, unless Force is on.

Properties ​

intentity_unique_id0
intmount_unique_id0
intseat_number0
boolforcefalse

Variables ​

Entityrider_entitynull
Entitymount_entitynull

Methods ​

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

Property descriptions ​

int entity_unique_id = 0 ​

Unique ID of the NPC that gets on

int mount_unique_id = 0 ​

Unique ID of the NPC it gets on (the mount or the vehicle; it needs a Mount interaction)

int seat_number = 0 ​

The seat: 1 is the first (the driver's, normally), 2 the second ... 0 = the first that is free

bool force = false ​

Get on even if the vehicle is hostile to the NPC and not hijackable

Variable descriptions ​

Entity rider_entity = null ​

References to the NPCs

Entity mount_entity = null ​

No description yet.

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