1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Can I get the amount of enemy health, when I shoot an arrow at the enemy?

Discussion in 'General discussion' started by MasApip, Feb 2, 2020.

  1. MasApip

    MasApip Spider

    Messages:
    8
    GitHub:
    MasApip
    Anyone can help me?
     
  2. Fadhel

    Fadhel Witch

    Messages:
    68
    GitHub:
    dimbis
    listen to EntityDamageEvent and then check if the event instance of EntityDamageByEntityEvent and check if the damage cause is projectile and you can get the entity and the damager
     
    HimbeersaftLP and GamakCZ like this.
  3. MasApip

    MasApip Spider

    Messages:
    8
    GitHub:
    MasApip
    Okay, thank you very much.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.