of     1   

VideoGameScientist
#227586505Wednesday, November 15, 2017 10:18 PM GMT

How would I make a pathfinding zombie that attacks the nearest player? I run into a problem, because I try using modified version of the wiki script, the zombie just kind of stutters? I have to regenerate the waypoints over and over or else the zombies goes to an old position, so how can I effectively do the pathfinding?
Fezezen
#227587515Wednesday, November 15, 2017 10:50 PM GMT

Check if the current target's position is out of a certain distance from the very last waypoint, if so, recalculate the path.
Soybeen
#227588450Wednesday, November 15, 2017 11:17 PM GMT

That's what I'd suggest too. Recalculating the path is cool- it's pretty taxing but you gotta do it.

    of     1