Raised This Month: $ Target: $400
 0% 

[HELP] NPC's distance


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
yan1255
Senior Member
Join Date: Jul 2011
Old 01-10-2015 , 20:56   [HELP] NPC's distance
Reply With Quote #1

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.
__________________
yan1255 is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode