don't want to seem like i'm giving advice, because I am not, and I also don't know what the OP. wants to do with this, since it's so vague and there might be a better approach, but here's something i came up with on a serverside approach to at least give an array of players in that object's coordinates.
Quote:
Originally Posted by Using...
TServerLevel.findareaplayers(float, float, float, float) - returns object - returns an array of all players in the specified rectangle (x,y,width,height), uses the blocking rectangle of players (0.5,1,2,2) instead of (0,0)
|
PHP Code:
// Created by Torankusu
function onCreated()
{
setshape(1,32,32);
this.image = "block.png";
drawunderplayer();
dontblock();
setTimer(0.1);
}
function onTimeout()
{
temp.pls = this.level.findareaplayers(this.x,this.y,2,2);
this.chat = temp.pls;
setTimer(0.1);
}
the object's chat in this example will display the array of players that are in the x,y of that object.