Currently, I’m trying to do a custom pathfinding system for zombies.
Let me explain the certain mechanic of my pathfinding:
If the zombie sees the player in plain sight, it doesn’t have to pathfind and just runs towards the player.
In places where it involves getting across one platform to another, using via bridge or whatever, the zombie would see the player in sight on the other side of the platform and chase after the player but without knowing it’ll fall off to its death. And also in parkour situations, when the player decides to jump off something (from a place where it’s not too high to cause fall damage), the zombie would take a way longer route instead of jumping off to chase after the player despite it being safe. This is something I do not know how to do.
Here’s an image:
(Blue is what the zombie should be moving alongslide to reach the static target)
(Red is a no-no thing where the zombie runs straight and falls)
(Black is when the static target moves and jumps down)
(Green is where the zombie reacts and jumps down to chase after the target, which is supposed to happen)