So this should be called when your AI is dead. I tried several but i can't find the right place. I tried the v_AIMotor in the CheckHealth after isDead=true.
This works, but it destroys the whole AIcharacter immediately after health is zero.
Aktually, i only want to inform the SpawnManager that the AI is Dead, not destroy the whole thing.
Another Problem is Instantianting the AI: Whenever a AI is instantiated by the Spawner i get an Error: NullReferenceException: Object reference not set to an instance of an object Invector.v_AIAnimator.OnAnimatorMove () (at Assets/Invector-3rdPersonController/Scripts/CharacterAI/v_AIAnimator.cs:59
This points to the Navmesh agent i think. Anyhow - it works. So i dont know whats the problem here.
I tried this with another AI Asset i own (Paragon Tactical AI). Works. But i cant see where's the difference.