Thread: Npc to Npc
View Single Post
  #24  
Old 02-04-2011, 01:39 AM
kingcj kingcj is offline
Registered User
kingcj's Avatar
Join Date: Apr 2006
Location: TN
Posts: 114
kingcj will become famous soon enough
Send a message via MSN to kingcj
Ok so that all works, but stil working with the bomb, and I want to trigger client now because the this.level.whatever doesn't seem to work serverside. Also it would require every player to use a bomb here.
PHP Code:
function onExplode() { 
  if (!
this.exploded) { 
    
this.image "door.png"
    
this.exploded true;
    
setTimer(3);
    
triggerClient("boom");
  } 

//#CLIENTSIDE
function onActionClientSide(cmd) { 
  if (
cmd == "boom") { 
  echo(
"working");
  
this.level.j.wasExploded(); 
  } 

__________________
Zie

"It is not necessary to change. Survival is not mandatory." - W. Edwards Deming

Last edited by kingcj; 02-04-2011 at 01:40 AM.. Reason: sorry, meant to say that this isn't working as well and there is more script this is just the part that doesn't seem to work.
Reply With Quote