[Closed] AIController clean up?
I assume its our responsibility to clean up AIControllers? I assumed that any actor that is dynamically created should be cleaned up.
I can see how player controllers should hang around so they can posses a new pawn. But AI controllers aren't really going to do that.
I tried destroying the controller from the pawn on unposses. Mostly as a stab in the dark. But it still lingers in the outliner.
My question is what is the ideal way of managing the AI controllers and ai pawns really? Basically AI dies, what should be the destruction pattern to follow?
Or is there a magic system to clean them up? :)
The question has been closed Jun 17 '16 at 09:26 PM by AndrewHurley for the following reason:
The question is answered, right answer was accepted
AIControllers without player state (default option,
Since there's no concept of "death" in engine's pawn, it's limited to EndPlay, Destroyed, OutsideWorldBounds and Reset events. If your pawn should cleanup controller when it dies (and usually they do need it), it's best to add
answered Jun 17 '16 at 09:25 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here