Quote:
Originally Posted by callimuc
so you mean i should just add a new weapon for the callihelimissle?
if yes do i have to change anything in the script than or is it ok than
|
You should probably just have a weapon named "-Projectiles" or so that deals with all projectiles. All players need to have this weapon.
PHP Code:
//#CLIENTSIDE
function onActionProjectile(projType) {
switch (projType) {
case "callihelimissile":
player.hearts-=0.5;
setAni("hurt",NULL);
break;
}
}
Once you've done that you just need to remove the onActionProjectile stuff from the helicopter script and fix the == thing I pointed out.