Author Topic: How do I make weapons so they can't kill players?  (Read 1010 times)

How do I make a weapon so it cannot kill players?


hmmmm, do you mean, just not players, so it hurts only vehicles? Or just hurts nothing?

Nothing. Setting the damage to 0 makes it kill in one hit.

I am pretty sure damage has to be set to -1.

I am pretty sure damage has to be set to -1.
I have a feeling that'll give them health some how  :cookieMonster:

Damage someone partially, record player.getDamageLevel();, hit them again and see if the value has changed.

Just because you see an OUCH doesn't mean they've been hurt, IIRC