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;
}