Posted March 23, 201411 yr 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. Lead DivineRPG Developer
March 23, 201411 yr 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. http://i.imgur.com/NdrFdld.png[/img]
March 23, 201411 yr Author 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. Lead DivineRPG Developer
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.