Third Person Cover Shooter
1.6
|
Manages a group of spawn points. More...
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< SpawnPoint > | Points [get] |
Returns active spawn points. More... | |
Manages a group of spawn points.
Can override prefabs set inside the spawn points.
void CoverShooter.SpawnGroup.Spawn | ( | Actor | caller | ) |
Instantiates prefabs on all spawn points.
IEnumerable<GameObject> CoverShooter.SpawnGroup.SpawnAndReturn | ( | int | max, |
Actor | caller, | ||
bool | isForced = false |
||
) |
Instantiates and returns prefabs on all spawn points.
IEnumerable<GameObject> CoverShooter.SpawnGroup.SpawnAndReturn | ( | int | max, |
GameObject [] | prefabs, | ||
Actor | caller, | ||
bool | isForced = false |
||
) |
Instantiates and returns given prefabs on all spawn points.
float CoverShooter.SpawnGroup.MinInterval = 1 |
Time in seconds before another call to spawn is allowed.
Ignored by SpawnPicker.
bool CoverShooter.SpawnGroup.OnlyOverrideEmptySpawnPoints = true |
Should the PrefabOverride be used only on the spawn points that have no prefabs specified.
GameObject [] CoverShooter.SpawnGroup.PrefabOverride |
Prefabs to use when spawning.
Overrides the ones specified in the SpawnPoints.
SpawnGroup CoverShooter.SpawnGroup.Secondary |
Another spawn group to trigger instead by random chance.
float CoverShooter.SpawnGroup.SecondaryChance = 0.5f |
Chance that a secondary spawn group will be used.
Ignored if it not set to any.
SpawnPoint [] CoverShooter.SpawnGroup.SpawnPointOverride |
Positions at which the characters are spawned.
Taken from child objects if not specified.
|
get |
Returns active spawn points.