Thread: Bomb class
View Single Post
  #1  
Old 06-11-2006, 09:19 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Bomb class

X_X I know this is probably a simple syntax problem, but still:
Having trouble with these scripts, trying to make a bomb that works on gmaps.
Weapon:
PHP Code:
function onActionserverside()
{
  
putnpc2(playerx,playery,join("bomb"));
}
//#CLIENTSIDE
function onWeaponfired()
{
  
triggeraction(0,0,"serverside","Bomb test","bomb");

Class:
PHP Code:
function onCreated()
{
  
setshape(1,32,32);
  
showcharacter();
  
setcharani dr-bomb,;
  
settimer(3);
  
this.bx=x+1;
  
this.by=y+1;
}
function 
onTimeout()
{
  for(
this.i=0this.i<20this.i++)
  {
    
hitobjects(.5,this.bx,this.by);
    
hitobjects(.5,this.bx-this.i,this.by);
    
hitobjects(.5,this.bx+this.i,this.by);
    
hitobjects(.5,this.bx,this.by-this.i);
    
hitobjects(.5,this.bx,this.by+this.i);
  }

Reply With Quote