Open the BP_SmartAIComponent and create a new function called GetDeathAnim then in the details panel tick on the Pure option, then add a new Output called Anim and set its type to AnimSeqanceBase.
Then add another output called Index and set its type to Integer, then create a local variable called AnimIndexL and set its type to Integer. Then add the nodes shown in the image below, make sure you connect them up exactly like the image.

Then in the Event Graph then find the Death/Respawn comment section in the BP_SmartAIComponent and copy the video below.