asw_spawner

From Source Entities
Jump to navigation Jump to search

Code classes:

Asw spawner.png

asw_spawner is a point entity present in Asw.pngAlien Swarm. It is used to spawn and configure aliens.

ConVars/Commands[edit | edit source]

ConVar/CommandParameters or default valueParameter TypeEffect
asw_carnageintMultiplierTells the game to multiply how many aliens are spawned by asw_spawners by the given number.
asw_spawning_enabled10 disables, 1 enablesEnables asw_spawners.

Flags[edit | edit source]

  • 1: Infinite even on Easy mode - If Infinitely spawn aliens is set to true, this spawner will spawn aliens infinitely even if playing on easy mode.

Keyvalues[edit | edit source]

Max Num. of live aliens (MaxLiveAliens) <integer>
Maximum number of live aliens that can be present in the level from this spawner at any given time.
Num. aliens we can create (NumAliens) <integer>
The number of aliens that can spawn before the spawner is exhausted.
Infinitely spawn aliens (InfiniteAliens) <boolean>
Makes this spawner spawn aliens infinitely, except on easy mode.
Spawn interval (SpawnInterval) <float>
Time in seconds between each alien spawning.
Spawn interval variation (SpawnIntervalJitter) <float>
Percentage variation applied randomly to the spawn interval each time an alien spawns. Value must be between 0 and 100. The default 25 will give a 25% variation to the spawn interval, so a 1 second spawn interval would actually be randomly between 0.75 seconds and 1.25 seconds.
Alien Class (AlienClass) <choices>
Which type of alien to produce from this spawner.
Alien health scale (HealthScale) <float>
Does not exist in code.
Alien speed scale (SpeedScale) <float>
Does not exist in code.
Spawner State (SpawnerState) <choices>
Spawner's initial state
  • 0: Start spawning on mission start
  • 1: Wait for inputs

Inputs[edit | edit source]

SpawnOneAlien
Spawns a single alien.
StartSpawning
Makes the spawner start creating aliens.
StopSpawning
Stops the spawner from spawning, putting it into the 'Wait for inputs' state.
ToggleSpawning
If off, turn on. If on, turn off.

Outputs[edit | edit source]

OnAllSpawned
Fires when all children have been spawned.
OnAllSpawnedDead
Fires when all the children have been spawned and have died.

See Also[edit | edit source]