Thread: RC: Chests
View Single Post
  #29  
Old 05-26-2007, 04:24 PM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Quote:
Originally Posted by cbkbud View Post
PHP Code:
function onCreated()
{
  
this.wep = "Weapons/Total Ownage";
}
function 
onPlayerTouchsMe()
{
  if ( 
getVar() == NULL )
  {
    
addWeapon( this.wep );
    
clientr.( @ "chest_" @ this.level.name @ "_" @  this.level.x @ "_" @ this.level.y) = this.wep; 
  }
}
function 
getVar()
{
  return 
clientr.( @ "chest_" @ this.level.name @ "_" @  this.level.x @ "_" @ this.level.y);
}
//#CLIENTSIDE
function onCreated()
{
  
show();
  
onTimeOut();
}
function 
onTimeOut()
{
  if ( 
getVar() != NULL )
  {
    
hide();
  }
  
setTimer( 1 );
}
function 
getVar()
{
  return 
clientr.( @ "chest_" @ this.level.name @ "_" @  this.level.x @ "_" @ this.level.y);
} 
[EDIT]I didn't even realize there was a second page to this thread ... Hehe, sorry.[/EDIT]
And then I had 5000 chests around the OW.. oh snap, 5k flags...

I didn't want to do that.
__________________
- Zidane / Zidaya
Reply With Quote