of_bot_spawner

From Open Fortress Wiki
Revision as of 10:24, 4 January 2025 by Kate (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Open Fortress of_bot_spawner is a point entity available in Open Fortress Open Fortress. Spawn Bots

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Start Disabled? (StartDisabled) <boolean>
Default: false
Bot Template 1 (BotTemplate1) <string>
Template to use for spawning bots
Bot Template 2 (BotTemplate2) <string>
Template to use for spawning bots
Bot Template 3 (BotTemplate3) <string>
Template to use for spawning bots
Bot Template 4 (BotTemplate4) <string>
Template to use for spawning bots
Bot Template 5 (BotTemplate5) <string>
Template to use for spawning bots
Default Template (TemplateNum) <integer>
Sets which template should be used.
Randomize Templates (RandomizeTemplates) <boolean>
If true, randomizes which template should be used for each bot.
Wave Size (WaveSize) <integer>
How many bots should spawn per wave.
Wave Interval (WaveIntervals) <float>
How long it should take before a wave respawns, setting it to -1 spawns it only once.
Spawn When Cleared (SpawnWhenCleared) <boolean>
If true, won't spawn the next wave untill the previous one is dead.
Wave Preset (WavePreset) <string>
If set, it will use a wave preset to determine which bot template to use for how many bots.
Target Entity Name (Target) <targetname>
If set, makes the bots target a specific point to go to.
Spawn Point (SpawnPoint) <targetname>
If set, spawns the bots around a targeted entity, instead of around the bot spawner.
Spawn Radius (SpawnRadius) <float>
Radius around which bots will spawn (units).

Inputs

Enable <void>
Enable this entity.
Disable <void>
Disable this entity.
Toggle <void>
Toggle the enable/disabled status of this entity
SpawnWave <void>
Force spawn a wave, doesn't reset the wave interval
ResetInterval <void>
Resets the time to spawn a wave
SetInterval <float>
Sets the time it takes for waves to respawn
SetTemplate <integer>
Changes which template is used to spawn bots
SetTarget <targetname>
Changes the targeted entity
KillAllBots <string>
Kills all active bots

Outputs

OnAllBotsKilled
Fired when every bot is defeated.
OnBotKilled
Fired every time a bot dies.
OnBotsSpawned
Fired whenever a wave is spawned.