Auto hunt - don't pull swimming mobs if player isn't swimming.

Rooster

Active Member
Is there any chance that with the "Autohunt" setting, change it so that it will only pull swimming mobs if the player is swimming?

If you're outside the water, at the moment you'll target a swimming mob and cast spells at it... the encounter resets because you are out of the water.. and it gets stuck in a loop.

If you are in the water, it's fine to pull swimming (and I guess non-swimming) mobs... but if the player is not swimming, it shouldn't pull swimming mobs, due to the encounter breaking issue.
 
Last edited:

Kannkor

Ogre
Is there any chance that with the "Autohunt" setting, it will only pull mobs that have the same swimming status as yourself?

Here's an example - Karnor's Castle. Running around the outside, at the moment it will target and try to kill the lurking sentinels, the encounter breaks because you're not swimming, yet you will stand there and keep attacking it forever, continually starting/breaking the encounter.

Sometimes you will be in the water, and it's fine to pull swimming (and I guess non-swimming) mobs... but if the player is not swimming, it shouldn't try to pull swimming mobs, due to the encounter breaking issue.
I'll look to see if I can if a mob is in water or not.
 

Kannkor

Ogre
I'm pretty sure thats an animation check, and thus will only work on humanoid NPC's.
None the less, it's easy to find out if it'll work or not.

Actually, if someone wishes, they can find a mob, target it, and type in the console: echo ${Target.IsSwimming}
Should give an idea if it'll work or not.
 

Rooster

Active Member
Confirmed, ${Target.IsSwimming} shows TRUE when mob is in the water, FALSE when mob is out of the water. This includes non-humanoid mobs like the swimming snakes in KC, as well as Froglok's swimming through pools of water. I checked several mobs in and out of water and it's very reliable on a variety of mob types.
 
Last edited:

Nuprecon

Active Member
While you are changing how the code works, you might put "ignore non agro mobs" on it. You might fix some of the swimming / non swimming problems that way.
 
Top Bottom