Pawn Location after Possession

Hi,
after possessing a pawn i can’t access location which is needed for camera blueprint, camera freeze at the start location of possessed pawn but does not move. After possesing player main character camera works fine.

camera actor

player controller

Thanks in advance !

Hi Haxor,

Just to get a better understanding of what you are trying to accomplish, could you describe your setup a bit?

Are you just wanting to move a camera from one possessed pawn to another? If so, you shouldn’t need a camera actor, you would just need to blend the camera view as you possess the pawn.

Hi TJ Ballard,

Setup looks like this, 1 character, 1 vehicle , camera actor attached to the center of map so it’s rotating accordingly to player location.

To get things harder I want it to be local multi-player with one shared view. But I need the camera to track only the pawns currently possessed by players.

As for the multi-player camera I have done this already in another project, here the possession is causing me troubles.

Hope this description is clear enough :slight_smile: I should have posted it right away :slight_smile:
Thanks !

Hi,
Still scratching my head why this does’t work BUT i figured out a way around :slight_smile:

So i added another Actor, one for each player and attach it to currently possessed pawn, then camrea actor have to deal with only 2 actors to track position. Just not sure if its the right way to do it, but seems to be working with only one error

I don’t see anything inherently wrong with your workaround setup, it should be fine in the long run.

As far as the 2 errors, if you replace the Attach/Detach ActorToComponent nodes with AttachToActor and DetachFromActor nodes, that should fix it. The depreciated nodes will eventually be removed, so it’s good to future proof your project if you ever plan to upgrade versions.

Thanks a lot :slight_smile: Feeling much more comfortable now :slight_smile: