oh okay 6 Share Posted July 20, 2019 is there a way to get the attack animation of a npc? or a way to obtain this? Link to comment Share on other sites More sharing options...
henrique190 8 Share Posted July 20, 2019 NPC x = getNpcs().closest(i -> i != null && i.getName().equals("NPCNAMEEEEE")); x.getAnimation(); Link to comment Share on other sites More sharing options...
NovaGTX 106 Share Posted July 22, 2019 If you just need to know its anim id use entity hover. If you plan on using it in the script the above answer works. Link to comment Share on other sites More sharing options...
oh okay 6 Author Share Posted July 30, 2019 On 7/20/2019 at 11:31 PM, henrique190 said: NPC x = getNpcs().closest(i -> i != null && i.getName().equals("NPCNAMEEEEE")); x.getAnimation(); thanks for the effort bro but this will get ANY animation not just solely the attack animation, is there a foolproof method? Link to comment Share on other sites More sharing options...
oh okay 6 Author Share Posted July 30, 2019 On 7/22/2019 at 11:41 PM, NovaGTX said: If you just need to know its anim id use entity hover. If you plan on using it in the script the above answer works. thanks for the effort bro but this will get ANY animation not just solely the attack animation, is there a foolproof method? Link to comment Share on other sites More sharing options...
henrique190 8 Share Posted July 30, 2019 Tell me what you need to do, maybe you can help Maybe you can use a condition to do what you need ex, if(x.getAnimation == 358) { do } Link to comment Share on other sites More sharing options...
Articron 738 Share Posted July 30, 2019 What is your end goal with this? Prayer flicking? There's no cut out implementation for this. f you want to determine an attack animation on the fly, you'd have to be checking for any animations other than the idle one each tick. The animation that reoccurs is the attack animation. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.