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:
    1,124
    Likes Received:
    257
    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

    SlashnHax The Chosen One

    Joined:
    Dec 10, 2014
    Messages:
    2,951
    Likes Received:
    861
    Checking for Npcs targetting the player is the most logical way.
     

Share This Page

Loading...