Skip to content

CallReinforcementsAction ​

Inherits: EncounterAction < Resource

Spawns reinforcement entities at designated positions to aid the group

Properties ​

Vector3reinforcement_spawn_pointVector3.ZERO
intentity_id0
intamount_to_spawn1
boolspawn_all_at_oncetrue
floatspawn_interval2.0
intmax_total_spawns0 # 0 = no limit
booljoin_encounter_immediatelytrue

Variables ​

intentities_spawned0
floatspawn_timer0.0

Methods ​

voidprocess( delta: float )
voidreset_spawning()

Property descriptions ​

Vector3 reinforcement_spawn_point = Vector3.ZERO ​

Where the reinforcements appear.

int entity_id = 0 ​

The NPC that is spawned.

int amount_to_spawn = 1 ​

How many are spawned each time.

bool spawn_all_at_once = true ​

True when they all appear together, false one after the other.

float spawn_interval = 2.0 ​

If not spawning all at once

int max_total_spawns = 0 # 0 = no limit ​

The most reinforcements the action ever spawns (0 = no limit).

bool join_encounter_immediately = true ​

True when they join the encounter as soon as they appear.

Variable descriptions ​

int entities_spawned = 0 ​

Track how many entities have been spawned

float spawn_timer = 0.0 ​

Track spawn timing for interval spawning

Method descriptions ​

void process( delta: float ) ​

Process method for interval spawning

void reset_spawning() ​

Reset spawn tracking