Page 1 of 1

AI: Resurface to breathe

Posted: 10 Jul 2017, 19:27
by akortunov
We have a three years old feature request and an year-old pull request to implement it.

Can we use this code?

If yes, here you can find a slightly improved version (NPC will resurface when breathing level below 1/2).
If not, which behaviour would be correct?

An additional question: should combat AI use water breathing spells?
It seems vanilla Morrowind AI does not use it (include potions), and theoretically NPC can dive too deep (he will not have enough time to resurface).

Re: AI: Resurface to breathe

Posted: 30 Jul 2017, 17:35
by akortunov
Implemented in a new AiBreathe AI package in this commit.