Possession with Line Trace

Hi,
I’ve been trying to make a script that traces a line when the spacebar is pressed, and if that line hits another pawn the controller possesses them. However I cant get it to work and the cast isn’t failing so I dont know what else to try.
All comments helpfull
thanks.

ok, so First: what happens when that cast happens?
Also can you test on pawn if the function OnPossesed on Blueprint’s pawn is executed?

Have you tried to call “Un Possess” before “Posesses” ? Un Possess | Unreal Engine Documentation