Blockland Forums > Modification Help

Making a Hole Bot only target specific teams

Pages: (1/2) > >>

RobbinsonBlock:

I'm trying to make a Cop bot that will attack people on a specific criminal team when he sees them, but is otherwise neutral. I've dug through the Bot_Hole code but still can't figure out how to do this. Does anyone know how?

Gautier00:

Idk why the hell you'd dig through the code when it's a simple event function that exists already for bots, it's called setTeam.

RobbinsonBlock:


--- Quote from: Gautier00 on June 01, 2021, 10:32:46 PM ---Idk why the hell you'd dig through the code when it's a simple event function that exists already for bots, it's called setTeam.

--- End quote ---
Read carefully.

Gautier00:


--- Quote from: RobbinsonBlock on June 01, 2021, 10:40:28 PM ---Read carefully.

--- End quote ---
From what I read, you can handle this perfectly with setTeam.

RobbinsonBlock:


--- Quote from: Gautier00 on June 01, 2021, 11:04:27 PM ---From what I read, you can handle this perfectly with setTeam.

--- End quote ---
If you just change the bot's team, it will attack everyone that is not on it's team. What I'm trying to achieve is a bot that will target and attack people on a specific team if it sees them, but is neutral to everyone that is NOT on that team.

Pages: (1/2) > >>

Go to full version