I'm working on a map which has some underwater areas in which I want ground units to be able move around. This of course is no problem with regular players, but I cannot get AI players to move through water. Even if I try kiting some AI units into the water, they turn around and give up as soon as they reach the edge. Is there a way to remove this phobia of water AI seem to have?
U probably did this but check the pathing layer. I haven't dealt with water yet but I have set up pathing.
Make the water labelled green and see if it helps.
But hey, atleast ur units are safe from attack. ;)
If it's in the ai code then I have no clue but I'm hoping it's in the unit data. If I were u I would try making a unit from scratch and then assign it to the ai to see if it can path there. Making the unit from scratch will make sure there isn't a flag checked that prohibits walking through water.
Also if you can load campaign maps check the one from zeratuls vision campaign map where colossi come out of the deep water. If you find that map u may be able to see how that did this.
Well looking at the "movement" tab for the colossus, it has its own little checkbox for colossus, as well as the "flying box checked. I'm thinking this means the AI may treat it differently than other ground units, as AI has no problem sending air units over water.
edit: I went and looked through a replay and one of the AI sent a probe into the water, but that single unit was the only ground unit any of the AI teams sent into the water for the entire match. So it seems the AI may have the ability to enter the water, they just don't seem to want to go in.
I'm working on a map which has some underwater areas in which I want ground units to be able move around. This of course is no problem with regular players, but I cannot get AI players to move through water. Even if I try kiting some AI units into the water, they turn around and give up as soon as they reach the edge. Is there a way to remove this phobia of water AI seem to have?
U probably did this but check the pathing layer. I haven't dealt with water yet but I have set up pathing. Make the water labelled green and see if it helps.
But hey, atleast ur units are safe from attack. ;)
Well, I've tried using the "ground" pathing (green) which didn't solve the problem at all.
If it's in the ai code then I have no clue but I'm hoping it's in the unit data. If I were u I would try making a unit from scratch and then assign it to the ai to see if it can path there. Making the unit from scratch will make sure there isn't a flag checked that prohibits walking through water.
Also if you can load campaign maps check the one from zeratuls vision campaign map where colossi come out of the deep water. If you find that map u may be able to see how that did this.
Well looking at the "movement" tab for the colossus, it has its own little checkbox for colossus, as well as the "flying box checked. I'm thinking this means the AI may treat it differently than other ground units, as AI has no problem sending air units over water.
edit: I went and looked through a replay and one of the AI sent a probe into the water, but that single unit was the only ground unit any of the AI teams sent into the water for the entire match. So it seems the AI may have the ability to enter the water, they just don't seem to want to go in.