Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved How do I check if an npc is in combat?

Joined
Jul 20, 2016
Messages
1
getHealthGauge()!=null is better because target could be if its talking/trading etc.

Also sometimes the npc will be stuck behind a wall and not actually in combat, but will have a target.

It depends on the specific use case, but generally this method is more reliable for standard combat scripts.
 
Top