View Single Post
  #11  
Old 06-22-2008, 08:02 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Stefan View Post
Stuff like

PHP Code:
clientr.("chestopened_" level.name) = true
would be best, because such arrays can become quite huge and each modification of a client/clientr variable needs to be sent to the client.


PHP Code:
function onPlayerTouchsMe()
{
  if ( ! 
clientr.( @ "chestsOpened_" this.level.name "_" this."_" this.) )
  {
    
clientr.( @ "chestsOpened_" this.level.name "_" this."_" this.) = true;
    
// Stuff to do e.g. add a weapon
  
}

__________________
Reply With Quote