View Single Post
  #2  
Old 01-30-2004, 11:40 PM
ZeLpH_MyStiK ZeLpH_MyStiK is offline
Scripter
ZeLpH_MyStiK's Avatar
Join Date: May 2003
Location: NYC
Posts: 553
ZeLpH_MyStiK is on a distinguished road
Send a message via MSN to ZeLpH_MyStiK Send a message via Yahoo to ZeLpH_MyStiK
if (playertouchsme) ?
or
loop through every player using distance formula to check if they're within a distance.
Distance formula: D=((x1-x2)^2 + (y1-y2)^2)^(1/2)
where (x1,y1),(x2,y2) are the coordinates of the two objects (this case npc and player)
__________________
Reply With Quote