Quick question, just need a confirmation - is it possible to rename bots?
I created this code just now:
I'm aware setclientcvar would never work since bots don't have their own configurations like players do. Still, as a noob, it's worth the try.PHP Code:
if(isdefined(self.isbot))
{
botname = getSubStr(self.name, 0, 3);
if(botname == "bot")
{
number = getSubStr(self.name, 3, self.name.size);
self.name = "new name #"+number;
self setclientcvar("name", "new name #"+number);
iprintlnBold("a bot has been renamed");
}
}
Also, it's weird that I can get self.name from a bot but cannot change it.
I'm reading the printed message in game every time the code is read, so, it is reaching the renaming commands.
Hmm... I actually just tried to use 'self.name = ' to rename myself ingame, and it didn't work. Any clues?