Try this:
PHP Code:
function onCreated()
{
showcharacter();
this.target = findplayer(this.owner);
this.attr[2] = new[5][2];
setTimer(.3);
}
function onPlayerChats()
{
if (player.account == "raeiphon" && player.chat.starts("/destroy")) { this.destroy(); }
if (player.account == "raeiphon" && player.chat.starts("/show")) { this.chat = this.attr[2][0]; }
if (player.account == "raeiphon" && player.chat.starts("/halt")) { triggerclient(); }
}
function onTimeout()
{
if (this.attr[2].size() > 5) { this.attr[2] = this.attr[2].subarray(0,5); }
this.attr[2].insert(0, {this.target.x,this.target.y});
//triggerclient(this.attr[2]);
setTimer(.1);
}
//#CLIENTSIDE
function onCreated()
{
setTimer(.3);
}
function onTimeout()
{
this.chat = this.attr[2];
this.x = this.attr[2][4][0];
this.y = this.attr[2][4][1];
setTimer(.3);
}
function onActionClientside(var)
{
this.attr[3] = var;
}
You've proven they attr's can store arrays... I'm just not sure if they can be passed to the clientside.