Commands/Lua
Reference for console commands, Lua hooks and Lua commands in CS2D.
- Console Commands are entered in console, executed with key-binds, cfg-files or with Lua parse
- Lua Hooks execute Lua when events occur - some have a return value which can change the game behavior
- Lua Commands are used to retrieve game data or to perform actions in Lua scripts
CS2D Console Commands
Category: bots (17)
bot_prefixCategories
Parameters
- prefix (text): a prefix for botnames
Info
Sets a prefix for all bot names. This makes it easier to see which players are bots.
You have to change this setting BEFORE bots join. It does NOT affect bots who already joined.
Set it to "" if you don't want to use a prefix for bots.
The default bot prefix is "[b]".
Note: You can also see which players are bots and which aren't by taking a look at the ping column in the scoreboard. It will say "Bot" there for all bots. Also note that bots have 0 latency as they run on the server. That's why it doesn't make sense to show a latency value for them.
Lua Hooks
Lua Commands
Categories
Parameters
- prefix (text): a prefix for botnames
Info
Sets a prefix for all bot names. This makes it easier to see which players are bots.
You have to change this setting BEFORE bots join. It does NOT affect bots who already joined.
Set it to "" if you don't want to use a prefix for bots.
The default bot prefix is "[b]".
You have to change this setting BEFORE bots join. It does NOT affect bots who already joined.
Set it to "" if you don't want to use a prefix for bots.
The default bot prefix is "[b]".
Note: You can also see which players are bots and which aren't by taking a look at the ping column in the scoreboard. It will say "Bot" there for all bots. Also note that bots have 0 latency as they run on the server. That's why it doesn't make sense to show a latency value for them.