Closed Basti890 closed 7 years ago
AI-Cache is not the Problem, but has a strange bug, when enabling it the Mayor in Mayors-Mansions will loos his special setup to wait till player is nearby
On searching the code and arma2 documentation I thick I found the Problem, If the unit dies BEFOR the Eventhandler "Killed" is added the Death of the unit will be ignored.
So some solutions for the problem might be usefull:
Tested solution 1, it didn't work
And while NOT 1 AI is living the debug-log says 51 AI living! I killed many with Apache maybe its buggy if u killed many AI it seems to bug.
I think solution #2 should be the best solution.
When a Mission is spawning and some AI are dying during the spawn the mission will never despawn with for example 99% Killrate before mission complete.
The reason seems to be that the natural death of AI on mission spawn don't count in the killcounter.
2 solution are realsitic:
I can also implement such function if u want, (or at least make an example) but I don't know how to count living AI only for a specific mission.
Maybe it could also be a Bug with the AI cache (I got it activated). I'll check this later on my testserver.