Check if pawn is possessed

Hello,

Im working on a multiplayer project and it requires pawns to be possessed at certain times. However, I need a way to check if a pawn is already possessed by a player, or if it is not.

Is there an easy way to do this in BP or C++? Or Should I go about a different way to see if a player is controlling the pawn in question?

There are two events called Event Possessed / Event Unpossessed, you can use them to set a bool and see when the pawn is possessed or not.

Awesome. Thats exactly what I was looking for. Thank you very much!

If you don’t want to have to create another boolean variable to track this, you might try using Get Player Pawn and using an equal node to compare the result to self within the Pawn blueprint. That should tell you if the pawn is possessed by the player.

2 Likes

Seven years ago, this question got solved with a simple answer.

Today you decided to give an answer that requires the same amount of work (if not more), but its also not solving his problem - its useless in multiplayer.

3 Likes