Page 1 of 2

AI help

Posted: Fri Jun 14, 2019 2:46 pm
by AndreyWindigo
My bot always goes to the center of the map how to remove it ??It sometimes goes to the center sometimes it goes on CoverPoints....

script bl_AIShooterAgent

DELETED

Re: AI help

Posted: Fri Jun 14, 2019 2:51 pm
by Lovatto
1 - Never post whole scripts.
2 - Have you bake the navmesh in your scene?

Re: AI help

Posted: Fri Jun 14, 2019 3:08 pm
by AndreyWindigo
yes. Everything works fine, but he sometimes goes to the center where there is no point..

Re: AI help

Posted: Fri Jun 14, 2019 3:33 pm
by Lovatto
Can you show me a video of this

Re: AI help

Posted: Fri Jun 14, 2019 3:38 pm
by AndreyWindigo
Ok i sent u pm

Re: AI help

Posted: Fri Jun 14, 2019 4:01 pm
by Lovatto
So the problem is that the bot goes to the cover points in the center of your map?

Well, that is by design, when the bot doesn't have a target it's in patrol mode, taking random points in the maps or taking random cover points, have in mind that the
AI is designed for combat environments, so if you wanna it to fit more for your needs (animal AI) you have to modify it, or in this case, if you wanna avoid some areas in your maps for bots not walk over, then add some invisible static colliders in the navmesh or not walkable layer areas.

Re: AI help

Posted: Fri Jun 14, 2019 4:12 pm
by AndreyWindigo
maybe I can change something in the code to fix it ??

Re: AI help

Posted: Fri Jun 14, 2019 4:15 pm
by AndreyWindigo
and if he has target the he will walk only on points*?

Re: AI help

Posted: Fri Jun 14, 2019 4:23 pm
by Lovatto
if it has a target then will take only points and or cover points near the target, instead of a random from the whole map.

Re: AI help

Posted: Fri Jun 14, 2019 4:26 pm
by AndreyWindigo
Is it possible to somehow remove the code that it takes random points on the map?