The Bots command manages the bots of the server: /bots add [amount] adds bots (1 by default, 128 at most), /bots kick kicks every bot, and /bots freeze and /bots unfreeze freeze and unfreeze all bots through the bot_zombie console variable. Every subcommand needs the bots permission.

Summary

Subcommands

Adds bots to the server, one every 0.2 seconds, and notifies staff.
Freezes all bots by turning bot_zombie on and notifies staff.
Kicks every bot from the server and notifies staff.
Unfreezes all bots by turning bot_zombie off and notifies staff.

Subcommands

add:on_run(actor, amount)

shared plugins/admin/plugin/commands/sh_bots.lua:19

Adds bots to the server, one every 0.2 seconds, and notifies staff.

Parameters

  • actor Player the caller, or an invalid entity when run from the server console
  • amount String optional, defaults to 1 number of bots to add, clamped to 1-128

freeze:on_run(actor)

shared plugins/admin/plugin/commands/sh_bots.lua:54

Freezes all bots by turning bot_zombie on and notifies staff.

Parameters

  • actor Player the caller, or an invalid entity when run from the server console

Kicks every bot from the server and notifies staff.

Parameters

  • actor Player the caller, or an invalid entity when run from the server console

unfreeze:on_run(actor)

shared plugins/admin/plugin/commands/sh_bots.lua:67

Unfreezes all bots by turning bot_zombie off and notifies staff.

Parameters

  • actor Player the caller, or an invalid entity when run from the server console

Defined in