Blockland Forums > Help

How do I make bots attack only other bots, not zombies/players?

Pages: (1/2) > >>

rockslide26:

Is there any way to get bots to attack only other bots, not players/zombies? Is it also possible to put bots on teams so they will attack only the other team? I'm thinking of making an RTS with bots.

Pliny:

I think this is possible with bot events.

Hubilly:

Think it has something to do with channels, I wouldn't know, I don't tinker around with bots.

Corbiere:


--- Quote from: Pliny on March 30, 2010, 08:31:13 PM ---I think this is possible with bot events.

--- End quote ---
Lies!

When a bot spawns, do the following:
Onbotspawn -> bot -> SETTEAMNAME -> team 1

Do the same for the 'enemy' bot but set to team 2

Then, on the team one spawns, do onbotspawn -> bot -> botattack -> attackteam "team 2"
and then do the same for the enemy, but with attackteam team1

Then respawn the bots and they'll dive on each other as long as they have a weapon

Corbiere:


--- Quote from: Corbiere on March 31, 2010, 04:59:24 AM ---Lies!

--- End quote ---

Not quite sure why I put that. (puzzled)

Pages: (1/2) > >>

Go to full version