View Single Post
  #3  
Old 11-23-2008, 11:10 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
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.this.attr[2][4][0];
  
this.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.
Reply With Quote