Hello there,
is it possible to get the combat state of a monster? I am currently working on a plugin for hunting goblins (modified versions of some plugins). Currently I am able to get a popup when I run into the range of an goblin (unfortunately it doesn't disable immediately if I leave the range, but that's something for later I guess).
Code:
public void PaintTopInGame(ClipState clipState)
{
foreach (var goblin in Hud.Game.AliveMonsters.Where(x => x.SnoMonster.Priority == MonsterPriority.goblin))
{
Hud.RunOnPlugin<Sefer.GoblinHuntPopupPlugin>(plugin =>
{
plugin.Show(goblin.SnoMonster.NameLocalized, "!!! Goblin spawned !!!", 5000, "");
});
}
}
Now I want to add another line which tells me whether or not this Goblin is in combat (aka too late for Invite). Is it possible to do that? +
I found the following attributes:
Code:
IAttribute In_Combat { get; }
or
Code:
IAttribute In_Combat_With_Player { get; }
Can be one of those be applied as a condition for
?
EDIT: goblin.AnimationState == AcdAnimationState.NotAnimating was my next attempt, but its always 0
EDIT2: goblin.Animation.ToString() also always seems to be 0