How to disable AI?

I have a similar problem to this:

When my monster/ally dies, i set “Simulate Physics” and it simulates ragdoll. It’s working, but its AI is still running and it moves around map, just invisible. How to deactivate AI of certain character? I’ve tried MyAIController —> Deactivate, but it’s not working.

Update: I’ve thought about setting my monster’s custom group enum variable to “Dead” and in AI controller check every tick if controlledMonster.group != “Dead” before the rest of logic. But maybe there is a better way to just disable AI, without checking every frame?

bumpy bump

Have you tried to un posses the pawn (simply the node “Un Posses”) and then just destroy the Controller?

That should do what you’re trying to do.

1 Like

Un Posses did the trick, thanks :slight_smile:

1 Like

How do you destroy the controller?

the right way is using ’ detach from controller pending Destory ’ node. Otherwise your AI controller will not be destroy if you just unpossess it .

1 Like

I use it to stop the death character’s AI controller but it still keeps looking me, why?

1 Like

Awesome!
“Detach From Controller Pending Destroy” Node Really Helped, So CooL!