MCPcopy Create free account
hub / github.com/assaultcube/AC / addbot

Function addbot

source/src/bot/botmanager.cpp:933–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931// Bot manager class end
932
933void addbot(char *arg1, char *arg2, char *arg3)
934{
935 if(!botmode()) return;
936 botent *b = BotManager.CreateBot(arg1, arg2, arg3);
937 if (b) conoutf("Bot connected: %s", b->name);
938 else { conoutf("Error: Couldn't create bot!"); return; }
939}
940COMMAND(addbot, "sss");
941
942void addnbot(char *arg1, char *arg2, char *arg3)

Callers 1

addnbotFunction · 0.85

Calls 3

botmodeFunction · 0.85
CreateBotMethod · 0.80
conoutfFunction · 0.50

Tested by

no test coverage detected