SpawnPoint
A class in Root.Township, Alta.Populations.
A position and rotation a population can spawn at, with a free flag and an optional busy-until time.
- Listed in World generation
- Documented in Populations and spawners
Constructors
| Member | What it is |
|---|---|
SpawnPoint(Vector3 position, Quaternion rotation, int index) | Creates a SpawnPoint from position, rotation and index. |
Fields
2 private and internal fields
Properties
Methods
| Member | What it is |
|---|---|
void MarkOccupiedForDuration(float duration) | Marks the point free but busy for a number of seconds; 0 or less makes it free now. |
Used in
Members of other types that take, return or hold a SpawnPoint:
PositionSurfaceDefinition.GetSpawnPosition, CavePopulationSpawnInformation.dud, CavePopulationSpawnInformation.GetPoint, CavePopulationSpawnInformation.GetRandom, CavePopulationSpawnInformation.Raycast, Ecosystem.SetPoints, PointsPopulationValue.GetPoint, PointsPopulationValue.GetRandom, PointsPopulationValue.Points, PointsPopulationValue.PointsPopulationValue, PopulationDefinition.IsPositionValid, PopulationItem.SpawnPoint, PopulationSample.AddEntity, PopulationSpawnArea.spawnPoints, PopulationSpawnInformation.GetPoint, PopulationSpawnInformation.GetRandom, SimplePopulationValue.GetPoint, SimplePopulationValue.GetRandom, SimplePopulationValue.tracked, SpawnAreaDisplay.Spawn, SpawnPointsDisplay.Spawn, ISpawnPositions.GetSpawnPosition, SpawnArea.GetSpawnPosition, SpawnPositions.GetLocalSpawnPosition, SpawnPositions.GetSpawnPosition.