engine wants me to leave

i have a code pessf destroys actor but it doesnt work on a npc which i want to work there but on my player character and idk y it does this and i m realy frustraed on ue4