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.j = testplayer(mousex, mousey);
if (temp.j > -1)
player.chat = "player found: " @ temp.j @ " at:" SPC players[temp.j].x SPC players[temp.j].y;
else
if (temp.j == -1)
player.chat = "no target found";
}
}
This only works when I click myself..
And, testnpc() works fine on clientside, why's that..?