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
AI help
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
- AndreyWindigo
- 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..
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
- Lovatto
- 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.
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.
- AndreyWindigo
- Contributor
- Posts: 20
- Joined: Wed May 15, 2019 6:14 am
maybe I can change something in the code to fix it ??
- AndreyWindigo
- Contributor
- Posts: 20
- Joined: Wed May 15, 2019 6:14 am
and if he has target the he will walk only on points*?
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
- AndreyWindigo
- 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?