Download

Does the player controller get destroyed when pawn is destroyed?

Hi,

I possess a pawn, and control it.

Once the pawn is at a low health, I destroy the pawn using the Destroy Actor Node.

Before I destroy it, I use the Unposses node using my custom controller.

When I unposses, I can’t use the respawn button, (K), when I press K it should print hello.

When my pawn is alive, and I am controlling it, when I press K, it prints hello.

How can I stop my custom player controller class from getting destroyed?

The player controller should not be destroyed when the pawn is.
Is the K button input in the pawn or in the player controller?