Thread: Leap Damage
View Single Post
  #3  
Old 06-06-2001, 06:35 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Re: Re: Leap Damage

Quote:
Originally posted by freddyfox

And you can't make a weapon hurt someone in the water. They are invincible in the water.
yes you can make it hurt someone in water... but you have to use the command
triggeraction targetx,targety,action,params;

example

NPC Code:

//They have to be next to you
if (playertouchsme) toweapons Hurt people in water and land;
if (weaponfired) {
triggeraction playerx+1.5+vecx(playerdir)*2,
playery+2+vecy(playerdir)*2,,;
}


then put this into a system weapon
NPC Code:

if (hurtpeople) {
setani hurt,;
hurt 1;
}

__________________
Thanks,
-KJL
Reply With Quote