Quote:
|
Originally Posted by konidias
yes. that is the general idea.
|
Does anyone have an example of a bomb script? I'm not sure what NPC is messed up, but I think it's my bomb class:
Class:
PHP Code:
function onCreated()
{
showimg(10,"bomb.png",x,y);
setshape(1,32,32);
settimer(3);
}
function onTimeout()
{
putexplosion(x,y,1,3);
}
And the script calling this class:
PHP Code:
function onActionserverside()
{
join("bomb");
putnpc2(playerx,playery,{join("bomb")});
}
//#CLIENTSIDE
function onWeaponfired()
{
triggeraction(0,0,"serverside","Bomb test","bomb");
}