How to play animation and destroy actor from BTTask?

One thing you’re missing here, that causes your issues, is that OwnerActor in EventReceiveExecute is a Controller not a Pawn. So when you call destroy you don’t destroy the pawn on the level, you destroy his brain! :smiley:

To get access to AnimInstance of your AI you need a sequence of calls:

  1. cast OwnerActor to a controller
  2. from the controller get the pawn with GetControlledPawn call
  3. cast retrieved pawn to Character class
  4. from resulting character instance get its skeletal mesh with GetMesh call
  5. you can get AnimInstance from the mesh with GetAnimInstance call

Cheers,

–mieszko