Third Person Cover Shooter  1.6
CoverShooter.SpawnGroup Class Reference

Manages a group of spawn points. More...

Inheritance diagram for CoverShooter.SpawnGroup:
CoverShooter.TriggerCountWave

Public Member Functions

void Spawn (Actor caller)
 Instantiates prefabs on all spawn points. More...
 
IEnumerable< GameObject > SpawnAndReturn (int max, Actor caller, bool isForced=false)
 Instantiates and returns prefabs on all spawn points. More...
 
IEnumerable< GameObject > SpawnAndReturn (int max, GameObject[] prefabs, Actor caller, bool isForced=false)
 Instantiates and returns given prefabs on all spawn points. More...
 

Public Attributes

SpawnPoint [] SpawnPointOverride
 Positions at which the characters are spawned. More...
 
GameObject [] PrefabOverride
 Prefabs to use when spawning. More...
 
bool OnlyOverrideEmptySpawnPoints = true
 Should the PrefabOverride be used only on the spawn points that have no prefabs specified. More...
 
SpawnGroup Secondary
 Another spawn group to trigger instead by random chance. More...
 
float SecondaryChance = 0.5f
 Chance that a secondary spawn group will be used. More...
 
float MinInterval = 1
 Time in seconds before another call to spawn is allowed. More...
 

Properties

IEnumerable< SpawnPointPoints [get]
 Returns active spawn points. More...
 

Detailed Description

Manages a group of spawn points.

Can override prefabs set inside the spawn points.

Member Function Documentation

◆ Spawn()

void CoverShooter.SpawnGroup.Spawn ( Actor  caller)

Instantiates prefabs on all spawn points.

◆ SpawnAndReturn() [1/2]

IEnumerable<GameObject> CoverShooter.SpawnGroup.SpawnAndReturn ( int  max,
Actor  caller,
bool  isForced = false 
)

Instantiates and returns prefabs on all spawn points.

◆ SpawnAndReturn() [2/2]

IEnumerable<GameObject> CoverShooter.SpawnGroup.SpawnAndReturn ( int  max,
GameObject []  prefabs,
Actor  caller,
bool  isForced = false 
)

Instantiates and returns given prefabs on all spawn points.

Member Data Documentation

◆ MinInterval

float CoverShooter.SpawnGroup.MinInterval = 1

Time in seconds before another call to spawn is allowed.

Ignored by SpawnPicker.

◆ OnlyOverrideEmptySpawnPoints

bool CoverShooter.SpawnGroup.OnlyOverrideEmptySpawnPoints = true

Should the PrefabOverride be used only on the spawn points that have no prefabs specified.

◆ PrefabOverride

GameObject [] CoverShooter.SpawnGroup.PrefabOverride

Prefabs to use when spawning.

Overrides the ones specified in the SpawnPoints.

◆ Secondary

SpawnGroup CoverShooter.SpawnGroup.Secondary

Another spawn group to trigger instead by random chance.

◆ SecondaryChance

float CoverShooter.SpawnGroup.SecondaryChance = 0.5f

Chance that a secondary spawn group will be used.

Ignored if it not set to any.

◆ SpawnPointOverride

SpawnPoint [] CoverShooter.SpawnGroup.SpawnPointOverride

Positions at which the characters are spawned.

Taken from child objects if not specified.

Property Documentation

◆ Points

IEnumerable<SpawnPoint> CoverShooter.SpawnGroup.Points
get

Returns active spawn points.


The documentation for this class was generated from the following file: