View Single Post
  #4  
Old 04-06-2007, 06:09 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Testplayer checks if they can be hit I believe. I found it didn't work if they were paused and possibly didn't work when they were in a non-pk level. Could try this

PHP Code:
function findmouseplayer()
{
  for (
pl: players) 
  {
    if (
pl.x in |mousex, mousex+2|)
    {
      if (
pl.y in |mousey, mousey+2|)
      {
        
temp.find.add(pl.account);
        
//break if you only want 1
      
}
    }
  }
  return 
temp.find;
} 
Reply With Quote