Author Topic: Problems with bots [Help please!]  (Read 556 times)

Ok, so lately i've been having THREE problems with bots:
1. I have no idea how to change the bot respawn time (for some reason the vehicle respawn time in minigame doesn't work, and I have no idea why)
2. When I make a dedicated server, I leave the game and then all of my bots freeze up and don't move or do basically anything as long as i'm not on the server.  However, once I come back, they fix themselves, so basically I have to be on the server for my bots to work.  I have no idea how I could fix this, but I think it has something to do with my ownership.  Is there anyway that I could maybe change the ownership to nobody? (turning save/load brick ownership off does not work)
3. When I kill a bot, it does the onBotKilled event, but then EVERY TIME I attack the corpse it does the onBotKilled event again.  So basically, they get exp for the kill, and then get exp every time they attack the corpse..

Can anybody tell me how to fix these problems?
« Last Edit: January 14, 2012, 09:53:28 AM by Chao »

I had this problem too, but it belongs in help.

Are the bots powered by relay/printcount loops? Those are ownership based events.

Are the bots powered by relay/printcount loops? Those are ownership based events.
No, but I use bot events.  I tried both my older version and the newest version of bot events and both of them had the same problems.

I can help you with no. 1.

Bot spawn events:
  • OnBotKilled>>Self>>SetVehicle>>None
  • OnBotKilled>>Self>>SetVehicle>>Standard Bot (Add a delay time to this event)

I've never encountered problem 2, and i used bots for my medieval rpg, hm. I have no idea.

I can help you with no. 1.

Bot spawn events:
  • OnBotKilled>>Self>>SetVehicle>>None
  • OnBotKilled>>Self>>SetVehicle>>Standard Bot (Add a delay time to this event)
Well, I actually did this a while ago and it worked, but for some reason it isn't working anymore.
I guess I could try it again though..

I've never encountered problem 2, and i used bots for my medieval rpg, hm. I have no idea.
Did you use an older version of bot events, or the newest one?

Also, I added a third problem I have.

Well, I actually did this a while ago and it worked, but for some reason it isn't working anymore.
I guess I could try it again though..

The most common reason I can think of is that you might mistake OnBotKilled with OnBotKill. OnBotKill is when a bot kills a player or another bot, and OnBotKilled is when the bot gets killed.

Did you use an older version of bot events, or the newest one?

Also, I added a third problem I have.
Third problem,
Simply,
OnBotkilled->Self->Setvehicle {none}
[50]Onbotkilled->self->setvehicle {Standard bot}