Hi,
I am trying to make a function that would find the nearest NPC (Non-Player Character) to the location of the player. Here is an example:
function GetClosestNPC(x#,y#,z#)
code to get closest npc
return nearestnpc$
so when I wanted to know the nearest NPC of a player I can just GetClosestNPC(playerpositionx#,playerpositiony#,playerpositionz#). I thought about having static, or limited movement NPC's within a square so i could check for the nearest co-ordinates, but is there a better way? Any help would be very greatly appreciated.
Thanks,
Krast0r
In theory, theory and practice are the same, but in practice they are not.
[email protected] - That's Right! I'm a Gmail Beta Tester!