RadioactiveStud Posted March 23, 2014 Posted March 23, 2014 Okay, so. I have an event when I wear a full set of armor, drowning damage is canceled. (Like so) This works, but the red hurt effect and screen movement is still there when the damage is canceled. How do I stop that (or is there another method I should use). I know how to stop fire damage and falling damage from letting that happen, but not this. Quote Lead DivineRPG Developer
coolAlias Posted March 23, 2014 Posted March 23, 2014 Use the LivingAttackEvent - it's called anytime a living entity is "attacked", i.e. about to suffer damage - and check if 1) the entity being attacked is a player, 2) the damage source is drowning, and 3) player is wearing your gear, then cancel the event. Quote http://i.imgur.com/NdrFdld.png[/img]
RadioactiveStud Posted March 23, 2014 Author Posted March 23, 2014 Use the LivingAttackEvent - it's called anytime a living entity is "attacked", i.e. about to suffer damage - and check if 1) the entity being attacked is a player, 2) the damage source is drowning, and 3) player is wearing your gear, then cancel the event. Ahh, I was doing all of that, except I was using LivingHurtEvent. Thank You sir. Quote Lead DivineRPG Developer
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.