Detect body part attacked

Discussion in 'Plugin Development' started by RcExtract, Jun 25, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    RcExtract

    How can I detect the body part attacked of an entity? I would like to make a headshot reward.
     
  2. Offline

    Horsey

    You need to work with vectors to find out if the attacker is looking at where the entities head should be.

    For example, the head of an entity would be slightly over where the entity's getLocation() is.
     
  3. Offline

    RcExtract

    How do I get the location the player is looking at?

    Edit: I think I can use pitch and yaw.
     
Thread Status:
Not open for further replies.

Share This Page