Search the Community
Showing results for tags 'path'.
Now I'm just try to understand how NPC HLC Traffic and 'traffic' (default MTA resource) is working, i.e. how the peds choose where to move and where to stop, etc. I know: peds randonly spawn around player on closest nodes and moves to another nodes. Nodes have flags (roadblock, emergency, highway, etc.). Each node have a links to another nodes. But for what a node need a neighbors and links and how it using, I don't know. Can't understand how they choose the right node from others. Please, explain how this system works. I suppose this algorithm has been taken from singleplayer, right?