AI? zombie path problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: AI? zombie path problem (
/showthread.php?tid=619263)
AI? zombie path problem -
jamesbond007 - 15.10.2016
i was making a gamemode like one or two years ago with fcnpc and i couldnt figure out how to make multiple bots follow me but not walk through each other, because when they did it looked like they just like teleporting and glitching through each other. i tried to check if a bot was close to another bot but they would stop and start running, and it looked really bad and buggy.
is there like a good formula or algorithm to determine a path of the zombies to follow me but also not collide with each other? how would i go making that
Re: AI? zombie path problem -
Misiur - 15.10.2016
A* algorithm might be helpful, where another zombie makes its tile and tiles surrounding it really high cost. I don't know if there's A* for PAWN library available though, ****** doesn't return much.
Re: AI? zombie path problem -
Freaksken - 15.10.2016
Quote:
Originally Posted by Misiur
A* algorithm might be helpful, where another zombie makes its tile and tiles surrounding it really high cost. I don't know if there's A* for PAWN library available though, ****** doesn't return much.
|
A* is planned to be implemented in FCNPC: see
this issue on GitHub.