Forums Index >> Modding >> creating bots



Page : <1> :


How do you program bots.

Wednesday, August 17, 2005 at 1:06:32 PM

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

Thursday, August 18, 2005 at 7:32:26 AM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald