Class SpawnConfig
Configuration class for adding custom creature spawns.
Use this to define spawn configurations in your CreatureConfig.
Use this to define spawn configurations in your CreatureConfig.
Inherited Members
Namespace: Jotunn.Configs
Assembly: Jotunn.dll
Syntax
public class SpawnConfig
Properties
| Name | Description |
|---|---|
| Biome | Biome to spawn in, multiple Biomes can be allowed with AnyBiomeOf(params Biome[]). |
| BiomeArea | BiomeArea to spawn in. Defaults to Everything. |
| GroundOffset | Offset to the ground the creature spawns on. Defaults to 0.5f |
| GroupRadius | Radius for the group to spawn in. Defaults to 3f. |
| HuntPlayer | Set true to let the AI hunt the player on spawn. |
| MaxAltitude | The maximum altitude (distance to water surface) for the creature to spawn. Defaults to 1000f. |
| MaxGroupSize | Maximum number of entities to attempt to spawn at a time. Defaults to 1. |
| MaxLevel | Maximum level the creature spawns with. Defaults to 1. |
| MaxOceanDepth | The maximum ocean depth for the creature to spawn. |
| MaxSpawnRadius | Maximum spawn range. |
| MaxSpawned | Maximum count of instances of this creature that can be active at the same time. Defaults to 1. |
| MaxTilt | The maximum tilt of terrain required to spawn. Range 0 to 90. Defaults to 35f. |
| MinAltitude | The minimum altitude (distance to water surface) for the creature to spawn. Defaults to -1000f. |
| MinGroupSize | Minimum number of entities to attempt to spawn at a time. Defaults to 1. |
| MinLevel | Minimum level the creature spawns with. Defaults to 1. |
| MinOceanDepth | The minimum ocean depth for the creature to spawn. |
| MinSpawnRadius | Minimun spawn range (0 = use global setting). |
| MinTilt | The minimum tilt of terrain required to spawn. Range 0 to 90. |
| Name | The unique name for your spawn configuration. |
| RequiredEnvironments | Only spawn if this environment is active, see GameConstants.Weather for constant values |
| RequiredGlobalKey | Only spawn if this key is set. See GameConstants.GlobalKey for constant values |
| SpawnAtDay | Creature can spawn at day. Defaults to true. |
| SpawnAtNight | Creature can spawn at night. Defaults to true. |
| SpawnChance | Spawn chance each spawn interval. Defaults to 100f. |
| SpawnDistance | Minimum distance to another instance. Defaults to 10f. |
| SpawnInForest | Spawn can happen in forest areas. Defaults to true. |
| SpawnInterval | Spawning interval. Defaults to 4f. |
| SpawnOutsideForest | Spawn can happen outside forest areas. Defaults to true. |
| WorldSpawnEnabled | Should this creature be loaded into the world spawn lists? Defaults to true. |
Methods
| Name | Description |
|---|---|
| GetSpawnData() | Converts the SpawnConfig to a Valheim style SpawnSystem.SpawnData without a prefab set. |