callimuc |
01-01-2011 10:56 PM |
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 / 2 + random( 0,0), NULL, NULL, "callihelimissle", 2);
}
function onActionProjectile()
{
player.hearts-=0.5;
setAni("hurt",NULL);
}
could anyone help me or tell me what i should fix?
|