Page 1 of 1

Bots gathering in map center [Solved]

Posted: Thu Mar 25, 2021 11:49 pm
by Tempo
I'm making a mission that's similar to elimination but I'm basing it off of conquest. I removed all the cp capture zones, and whenever the AI doesn't see anyone to kill they just gather at the center of the map. I've tried putting this after "conquest:Start":

AddAIGoal(1,"Deathmatch",100)
AddAIGoal(2,"Deathmatch",100)

and also this:

self.AIGoals = {}
if self.AIGoalWeight > 0.0 then
table.insert(self.AIGoals, AddAIGoal(self.teamATT, "Deathmatch", 100*self.AIGoalWeight))
table.insert(self.AIGoals, AddAIGoal(self.teamDEF, "Deathmatch", 100*self.AIGoalWeight))
end

but they don't seem to do anything. How can I get them to wander, or really just do anything that doesn't look stupid?

Re: Bots gathering in map center.

Posted: Fri Mar 26, 2021 12:47 am
by AQT
If you are using a conquest lua as a base, you should clear the AI goals first before giving them a Deathmatch one.

Re: Bots gathering in map center.

Posted: Fri Mar 26, 2021 12:48 am
by Tempo
how do I do that? I assumed that's what "self.AIGoals = {}" did

Re: Bots gathering in map center.

Posted: Fri Mar 26, 2021 6:42 am
by Benoz
You can do that with ClearAIGoals(teamIndex) which clears all previous AI Goals.

Re: Bots gathering in map center.

Posted: Fri Mar 26, 2021 6:06 pm
by Tempo
that worked, thanks