How to possess hit actor
how can I possess a pawn that I hit with a line trace?
I want to have mulitple characters that can be possessed all under the third person character parent class. But when I try to possess I can't figure out how to get the pawn reference from the hit actor.
asked Oct 25 '18 at 08:43 PM in Blueprint Scripting
Hello! You should normally be able to do the following
Hope this solves your problem! If it doesn't work let me know
answered Oct 25 '18 at 09:15 PM
The Out Hit Actor probably needs to be casted. So drag a "Cast To ThridPersonCharacter" node from Out Hit Actor. Then from that cast you can call Possess!
That should work, please let me know if it does not.
answered Oct 25 '18 at 09:12 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here