20.02.2018, 13:04
Quote:
I would just like to know why NPC following is really a big deal if it's already in the game, like can't it just be made with a single function by SAMP
|
That's why it is not as easy as just calling a single function and we have synced Peds...
Anyway, this requires FCNPC or RNPC for actual NPC control (SAMP's NPCs are useless in this regard), a plugin that holds info about the world (MapAndreas, or better yet ColAndreas) and, if you want to have NPCs that aren't "brute-forcing" their way to the player, also a Path Finder.
You'll need to control the NPCs movements manually (which is the easy part), check for walkable surfaces by RayCasting and find a path. The path finding is the hardest part.
Look into FCNPC/RNPC and MapAndreas/ColAndreas. That's your best bet for making an NPC that is capable of following Players similar to SP.