View Single Post
  #4  
Old 01-01-2011, 11:24 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by callimuc View Post
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.
__________________
Reply With Quote