View Single Post
  #5  
Old 01-11-2012, 03:33 AM
Alpho Alpho is offline
Registered User
Alpho's Avatar
Join Date: Dec 2011
Location: California, USA
Posts: 80
Alpho will become famous soon enough
Quote:
Originally Posted by fowlplay4 View Post
I believe putbomb2 version you're trying to use is server-side only.

Try:

PHP Code:
function onActionServerSide() {
  if (
params[0] == "bomb") {
    
// This should work
    
player.level.putbomb2(23030"bomb1.png");
    
// This also might work
    
putbomb2(23032"bomb1.png");
  }
}

//#CLIENTSIDE
function onCreated() {
  
triggerserver("gui"this.name"bomb");

Your script actually works clientside, thank you!
Reply With Quote