Editing
Custom Entities
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== $tf_bot_spawn == Tries to spawn a tf_bot with given TFBot keyvalues at its location. If spawning succeds, deletes itself, otherwise tries again next tick. Uses the robot player pool, and is affected by RobotLimit keyvalue. The spawned bot inherits this entity targetname, all its custom outputs and variables, teamnum, angles, velocity. If this entity is parented, the spawned player will be [[Entity Modules|fake parented]] to this entity parent. === Inputs === * $Spawn ** Spawns a bot, used when manual bot spawning is enabled. ===Keyvalues=== * =(keyvalue) <value> ** Sets a TFBot spawner keyvalue. Only simple key value pairs are allowed *$spawnlimit <int> **A maximum number of bots spawned from $tf_bot_spawn entities active at one. By default there is no limit *$spawnlimitname <string> **If set, $spawnlimit only counts bots spawned by $tf_bot_spawn entities, that also have the same spawn limit name *$spawnlimitaction <string> **What to do when a $spawnlimit is reached. By default, the additional bot refuses to spawn. Possible values: ***killoldest - Kills the oldest bot spawned by $tf_bot_spawn ***specoldest - Send the oldest bot spawned by $tf_bot_spawn to spectator team *$disallowspawnstuck <1/0> (Default: 0) **Prevent the bot from being spawned if there is no room for the spawned bot *$nospawnbetwenenwaves <1/0> (Default: 0) **Prevent the bot from being spawned if the wave is not running *$failspawnnoretry <1/0> (Default: 0) **If spawning fails, remove itself *$manualspawn <1/0> (Default: 0) **Do not spawn a bot automatically, require $Spawn input to spawn a bot === Output === * $onbotspawn ** Called when the bot is spawned. The spawned bot is the !activator * $onbotspawnfail ** Called every time this entity fails to spawn a bot
Summary:
Please note that all contributions to SigMod are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
SigMod:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
British English
Views
Read
Edit
Edit source
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information