http://pastebin.com/Xw4ipskV
New code was written but I'm having the same problem I had before with the NPCs only taking a step in your direction then stopping for a few seconds, and repeating this process. This is a script inside of a given NPC. There are dozens of NPCs in my game and I need these scripts to work smoothly for them all. Can anyone help me optimize this script or provide a good pathfinding/player detection script for NPCs that might work in my situation?
been working on this problem for a while now and i'm getting desperate |