Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.