AI help

have a question or problem with some assets, inform the team to find a solution.

User avatar
AndreyWindigo
Contributor
Contributor
Posts: 16
Joined: Wed May 15, 2019 6:14 am

AI help

Postby AndreyWindigo » Fri Jun 14, 2019 2:46 pm

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: 1028
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Re: AI help

Postby Lovatto » Fri Jun 14, 2019 2:51 pm

1 - Never post whole scripts.
2 - Have you bake the navmesh in your scene?

User avatar
AndreyWindigo
Contributor
Contributor
Posts: 16
Joined: Wed May 15, 2019 6:14 am

Re: AI help

Postby AndreyWindigo » Fri Jun 14, 2019 3:08 pm

yes. Everything works fine, but he sometimes goes to the center where there is no point..

User avatar
Lovatto
Admin
Admin
Posts: 1028
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Re: AI help

Postby Lovatto » Fri Jun 14, 2019 3:33 pm

Can you show me a video of this

User avatar
AndreyWindigo
Contributor
Contributor
Posts: 16
Joined: Wed May 15, 2019 6:14 am

Re: AI help

Postby AndreyWindigo » Fri Jun 14, 2019 3:38 pm

Ok i sent u pm

User avatar
Lovatto
Admin
Admin
Posts: 1028
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Re: AI help

Postby Lovatto » Fri Jun 14, 2019 4:01 pm

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.

User avatar
AndreyWindigo
Contributor
Contributor
Posts: 16
Joined: Wed May 15, 2019 6:14 am

Re: AI help

Postby AndreyWindigo » Fri Jun 14, 2019 4:12 pm

maybe I can change something in the code to fix it ??

User avatar
AndreyWindigo
Contributor
Contributor
Posts: 16
Joined: Wed May 15, 2019 6:14 am

Re: AI help

Postby AndreyWindigo » Fri Jun 14, 2019 4:15 pm

and if he has target the he will walk only on points*?

User avatar
Lovatto
Admin
Admin
Posts: 1028
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Re: AI help

Postby Lovatto » Fri Jun 14, 2019 4:23 pm

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.

User avatar
AndreyWindigo
Contributor
Contributor
Posts: 16
Joined: Wed May 15, 2019 6:14 am

Re: AI help

Postby AndreyWindigo » Fri Jun 14, 2019 4:26 pm

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

Return to “Support”

Who is online

Users browsing this forum: No registered users and 1 guest