A question about possess

i was trying to make a system that the player i look at i can pssess him but i am having some troble dedecting wich one i am looking at and possess him
can someone please help me do it ? thx

you can use RayCasting and trace a ray from camera location and direction and get the hit actor and cast to your character then decide if wanna possess it or not.

ok but then when i hit the player i cant get the pawn to posses

I did not get what you said but

thx this syetem worked