Zombie AI confusion

I am currently looking into path finding, AI etc.
But what makes a good AI?

How is it possible to make optimised smart AI npc that won’t get stuck on walls, jumps over obstacles etc.

I have looked into the pathfinding service, but apparently it drops frames by a lot.
Some say use ray casting, though I am not sure.

That’s why I would like to ask your opinion.

Note: My scripting is limited.

2 Likes

Look up some tutorial on youtube.
There are a ton of them.
Like this one (it is a bit long):

I wish you success.
To the extent of my knowledge I do not know of a AI pathfinding method that is intelligent and dynamic, like you described without Raycasting or PathFindingService.

1 Like

Is the map supposed to be open world or enclosed?

1 Like

Just use pathfinding.
It will only drop frames if you calculate a path 60 or 240 times a second, just run path:ComputeAsync() every .5 sec or .1 if you want it to be a little bit quicker.

1 Like

I was planning it to be 300 by 300, with buildings, trees, walls etc

I will experiment with it, Thank you

I will have a look into it, Thank you

I’m working on making a pathfinding service which will both perform better and have the option to be offloaded onto my servers (for the price of resource usage). You can follow it’s development here: Polaris-Nav

My problem is already solved
Thanks to @Doge_lover12345678