AI help

General support.
User avatar
AndreyWindigo
Contributor
Contributor
Posts: 20
Joined: Wed May 15, 2019 6:14 am

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
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

1 - Never post whole scripts.
2 - Have you bake the navmesh in your scene?
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
AndreyWindigo
Contributor
Contributor
Posts: 20
Joined: Wed May 15, 2019 6:14 am

yes. Everything works fine, but he sometimes goes to the center where there is no point..
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Can you show me a video of this
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
AndreyWindigo
Contributor
Contributor
Posts: 20
Joined: Wed May 15, 2019 6:14 am

Ok i sent u pm
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

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.
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
AndreyWindigo
Contributor
Contributor
Posts: 20
Joined: Wed May 15, 2019 6:14 am

maybe I can change something in the code to fix it ??
User avatar
AndreyWindigo
Contributor
Contributor
Posts: 20
Joined: Wed May 15, 2019 6:14 am

and if he has target the he will walk only on points*?
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

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.
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
AndreyWindigo
Contributor
Contributor
Posts: 20
Joined: Wed May 15, 2019 6:14 am

Is it possible to somehow remove the code that it takes random points on the map?
Post Reply