Download

Deactivate / destroy AI without destroying pawn?

How can I deactivate my pawns AI controller while leaving the pawn intact so that it can become a ragdoll?

Right now I am binding on take damage within my AI controller and checking my pawns health, when it drops below a certain level I run a do once and unposses, set behavior tree to none and set destroy actor, however the behavior tree keeps running and gives me errors in the log.

Though I haven’t done this myself, have you tried simply setting the AI again but this time to none.

Yes, I’ve even tried setting it to an empty AI controller. It doesn’t deactivate the previous one.

Try calling Unpossess first, then destroy, then Set Lifespan to 0.001