How do I check if a mob is targeting me?

Status
Not open for further replies.

Grep

Active Member
Basically I've been looking for a way to check if a mob has aggroded onto me so that I can avoid moving away from it when I'm fighting another mob and have called antiadd. E.g if the mob has already aggroed onto me there is no point in antiadd trying to move my bot away from it as its going to follow me anyway. I couldn't see a pawn.target variable, but that could just be me being crap at reading the wikki to be honest. I would be grateful for any help or being pointed in in the right direction.


Cheers in advance.
 

Cr4zyb4rd

Active Member
Check out the combatnpc datatype for target-of-target type members, and be sure to check both the wiki and the changelogs when looking for this type of thing. The changelogs are the final authority.
 

Grep

Active Member
Thanks to the help from XeonX on irc I think I have the answer, I'm using CombatState, as it doesn't really matter if the mob is attacking me or someone else, either way the bot doesn't need to move away.

TY guys :)
 
Status
Not open for further replies.
Top Bottom