View Single Post
  #4  
Old 01-31-2004, 02:06 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by -Ramirez-
if (playertouchsme) only triggers when the obvious happens: the player touches the NPC, not the other way around. To do what you're wanting, you would need to have a timeout constantly check the distance of the player from the NPC, as was already mentioned. However, use 0.5 at the end of that formula rather than (1/2). There's no need for extra calculation there.
o_O Why can't you just use testplayer to see if it is close enough to touch the npc
Reply With Quote