Forums Index >> Modding >> creating bots
Page : <1> :
Download tankAi.cs.
That is were you program bots. But if you want to make a new one this is how:
//-----------------------------------------------------------------------
//---------------------------- BRONZE TANKS -----------------------------
//-----------------------------------------------------------------------
go to^, and copy that datablock. Paste it below the gold tank datablock. Change the settings you wish your new bot to have, then
re-name : new TankAIData(BronzeLightAI)
^^^^^^^^^^^^^^
To whatever you want to call it. Then go to pref.cs in your script file and find where it says this:
$pref::Server::Bot0 = "GoldNoneTank";
$pref::Server::Bot1 = "SilverNoneTank";
$pref::Server::Bot2 = "BronzeNoneTank";
$pref::Server::Bot3 = "GoldNoneTank";
$pref::Server::Bot4 = "SilverNoneTank";
$pref::Server::Bot5 = "BronzeNoneTank";
And rename the tank you want to your new tanks name.
Its really simple. I've never seen an explination before its obvios though. Works for me! HAVE FUN! XD
Page : <1> :
How do you program bots.