Inherits AZ::ComponentBus.
◆ GetRandomDistribution()
virtual AZ::RandomDistributionType LmbrCentral::RandomTimedSpawnerComponentRequests::GetRandomDistribution |
( |
| ) |
|
|
pure virtual |
Gets the type of random distribution used for determining entity spawn location.
- Returns
- The AZ::RandomDistributionType currently in use for spawning
◆ GetSpawnDelay()
virtual double LmbrCentral::RandomTimedSpawnerComponentRequests::GetSpawnDelay |
( |
| ) |
|
|
pure virtual |
Gets the time (in seconds) between entity spawns
- Returns
- The time between entity spawns
◆ GetSpawnDelayVariation()
virtual double LmbrCentral::RandomTimedSpawnerComponentRequests::GetSpawnDelayVariation |
( |
| ) |
|
|
pure virtual |
Gets the random variation in spawn delay (time in seconds)
- Returns
- The random variation in spawn delay
◆ IsEnabled()
virtual bool LmbrCentral::RandomTimedSpawnerComponentRequests::IsEnabled |
( |
| ) |
|
|
pure virtual |
Gets whether or not the component is spawning
- Returns
- True if the component is spawning
◆ SetRandomDistribution()
virtual void LmbrCentral::RandomTimedSpawnerComponentRequests::SetRandomDistribution |
( |
AZ::RandomDistributionType |
randomDistribution | ) |
|
|
pure virtual |
Sets the type of random distribution to use when determining where to place spawned entities.
@randomDistribution The mathematical random distribution to use for spawning
◆ SetSpawnDelay()
virtual void LmbrCentral::RandomTimedSpawnerComponentRequests::SetSpawnDelay |
( |
double |
spawnDelay | ) |
|
|
pure virtual |
Sets the time (in seconds) between entity spawns
- Parameters
-
spawnDelay | The time between entity spawns |
◆ SetSpawnDelayVariation()
virtual void LmbrCentral::RandomTimedSpawnerComponentRequests::SetSpawnDelayVariation |
( |
double |
spawnDelayVariation | ) |
|
|
pure virtual |
Sets the random variation in spawn delay (time in seconds)
This value is used to calculate a random value that is added onto the SpawnDelay parameter. The range of random values is between -SpawnDelayVariation and SpawnDelayVariation.
- Parameters
-
spawnDelayVariation | The random variation applied to the spawn delay |
The documentation for this class was generated from the following file:
- Gems/LmbrCentral/Code/include/LmbrCentral/Scripting/RandomTimedSpawnerComponentBus.h