1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved Checking if player is under attack?

Discussion in 'Developer Support' started by Serene, Jun 1, 2016.

  1. Serene

    Serene ( ͡° ͜ʖ ͡°)

    Joined:
    Mar 30, 2015
    Messages:
    2,408
    Likes Received:
    508
    Is there a method already for checking if the player is under attack? Tried using the AnimationId I got from the dev toolkit, 424 when under attack, but that didn't work. Right now I'm checking if an NPC with a specific name is targetting the player, and if so then passing true since this npc would only be targetting if it is attacking. It works but looks really bad.
     
    #1 Serene, Jun 1, 2016
    Last edited: Jun 1, 2016
  2. Best Answer:
    Post #2 by SlashnHax, Jun 1, 2016
  3. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,198
    Likes Received:
    1,041
    Checking for Npcs targetting the player is the most logical way.
     

Share This Page

Loading...