View Full Version : Stopping bots from respawning

11th Jun 2005, 04:12 AM
Hi there. I'm trying to restructure my AI and want the monsters to use BotAI as it's just much better and useful. However always when one of the monsters is killed it respawns and I didn't get that to stop yet.
I tried to replace the state dead with sth. like this:

state dead
function BeginState()
Destroy() //When pawn is dead controller should be too

//just to override anything that was made here before (respawning)

But that didn't work. Nevertheless sth. is calling RestartPlayer() in Level.Game and I found no other possible place where this is called from to really respawn a player. Any ideas?

11th Jun 2005, 04:59 PM
Not sure if this is a typo but it should be "State Dying" not "State dead"


12th Jun 2005, 04:23 AM
Okay, been hard work, but I found it out myself. I already stopped the bot from respawning, but destroying the controller led to the game believing that a player has left the game (bot counts as player in Deathmatch.Logout) and so it tried to add a bot to maintain the playernumber. Have fixed that now. Nevertheless thanks!