View Single Post
  #1  
Old 01-01-2011, 10:56 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Red face shooting part of rc helicopter wont work

hey guys. i made a rc helicopter and it works just like i want it. now i added a shooting part but it hurts only a few people not everyone (i think just the people who have it). here is the part i think where the problem could be:
PHP Code:
     if(key "d"){
      
setshootparams("callihelimissle"player.account);
      
shoot(this.plane_x vecx(this.plane_dir), this.plane_y vecy(this.plane_dir), playerz, (this.plane_dir+1) * pi random0,0), NULLNULL"callihelimissle"2);
     }
     function 
onActionProjectile()
      {
        
player.hearts-=0.5;
        
setAni("hurt",NULL);
    } 
could anyone help me or tell me what i should fix?
Reply With Quote