CallReinforcementsAction ​
Inherits: EncounterAction < Resource
Spawns reinforcement entities at designated positions to aid the group
Properties ​
Vector3 | reinforcement_spawn_point | Vector3.ZERO |
int | entity_id | 0 |
int | amount_to_spawn | 1 |
bool | spawn_all_at_once | true |
float | spawn_interval | 2.0 |
int | max_total_spawns | 0 # 0 = no limit |
bool | join_encounter_immediately | true |
Variables ​
int | entities_spawned | 0 |
float | spawn_timer | 0.0 |
Methods ​
void | process( delta: float ) |
void | reset_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