After I implement this.
Unreal just keeps crashing. I did read from students who had the same situation that this is caused by TakeDamage. So I added a health check at the beginning but it doesn’t help.
My guess is by detaching, I also remove the owner of the pawn which generates nullptr. How do I locate the problem and solve it?