in the new V6 client a serverside triggeraction() in a level npc is received on the clients of all players in the level, and if you want to store data that can be retrieved on the client of a player who enters the level you can also use this.attr[#]
PHP Code:
function updatePoly(temp.polyarray){
this.attr[1] = int(timevar2);
this.attr[2] = temp.polyarray;
triggeraction(this.x + 1, this.y + 1, "UpdatePoly", "");
}
//#CLIENTSIDE
function onCreated()
this.setshape(1, 32, 32);
function onPlayerEnters()
if(this.attr[1] != this.save_time)
this.onActionUpdatePoly();
function onActionUpdatePoly(){
this.save_time = this.attr[1];
this.showpoly(200, this.attr[2].tokenize(","));
}