View Full Version : Spawning my own Bots in Runtime

31st Jan 2004, 08:46 AM
OK, I have been playing with the runtime uscript code, and I now can get runtime to always run using my custom gametype.

However, I don't know how to create a bot (a pawn and a subclass of AIController to possess the pawn). I am aware this is could need a fairly large amount of code as there are no bot spawning functions in 'Gameinfo' (e.g. the addbots() function in UT2003 - and I can't just copy and paste this as it uses rosterentry classes, which I do not need but addbots() does).

I'm thinking this problem has a lot to do with the restartplayer(Controller aPlayer) function, as this function seems to spawn bots or human players...but can anyone point me in the right direction for what to do with this? Some code snippets would be a great help if you have got this working yourself.