View Single Post
  #1  
Old 04-05-2007, 09:08 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
testplayer() clientside

When did testplayer() not work on other players clientside?
I can only recieve the index 0 (myself) using the command..

I am totally sure it did work on other players before..

PHP Code:
//#CLIENTSIDE
function onMouseDown(button)
{
  if (
temp.button == "left") {
    
temp.testplayer(mousexmousey);
    if (
temp.> -1)
      
player.chat "player found: " temp." at:" SPC players[temp.j].x SPC players[temp.j].y;
    else
      if (
temp.== -1)
        
player.chat "no target found";
  }

This only works when I click myself..
And, testnpc() works fine on clientside, why's that..?
__________________

Last edited by Chompy; 04-05-2007 at 10:31 PM..
Reply With Quote