
01-11-2012, 03:33 AM
|
Registered User
|
 |
Join Date: Dec 2011
Location: California, USA
Posts: 80
|
|
Quote:
Originally Posted by fowlplay4
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(2, 30, 30, "bomb1.png");
// This also might work
putbomb2(2, 30, 32, "bomb1.png");
}
}
//#CLIENTSIDE
function onCreated() {
triggerserver("gui", this.name, "bomb");
}
|
Your script actually works clientside, thank you! |
|
|