So I succedded in createing a few NPCs and saving them all in one map together now my new problem is like this...
When a player touches an NPC, he then get an a menu, the menu has a few options that aren't really relative.
Now this is where it gets a little difficult. When a player is too far from the NPC he can't use the menu.
I tried creating Arrays but i'm not so good at it...
The NPCs is created in a stock that will contain the NPCs origin from a file now i want to add the NPCs origin to an array now if there are more than one it will of course push the array and then when i just need to get the array i'll check for its origin within the array...
If i'm missunderstood please tell me I'll try to be more specific and well written.