View Single Post
  #9  
Old 08-26-2009, 07:26 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
You can store values in this.attr[] values, like so.

For example purposes:

PHP Code:

function onCreated() {
  
// Put a value in an attribute
  
this.attr[2] = "test!";
}

//#CLIENTSIDE

function onPlayerEnters() {
  
// Would set the NPC text to "test!"
  
this.chat this.attr[2];

You can alter the variables on the clientside, but changes will remain clientside, and will be overwritten/updated if changed on the serverside.
__________________
Quote:
Reply With Quote