Possesing 2 pawns at the same time

Hello i am new in unreal engine and i was wondering how to control 2 pawns at the same time with different keys.

In my image i have 2 pawns and its a tron like game from top view .

i can use possess in both of them and it works but not in the same time.

I have the keys and they work fine in each actor my only problem is that i cant control both of them at the same time .

I am sorry if this is a very basic or stupid question but i just can’t find a way to do it .

Please if you know a way help me.

Thank you for your time.

Hey @CHAOS_MAX!

You can’t possess multiple pawns at the same time. So here’s what you can do:

Screenshots are from an older topic, but they’re pretty similar! Here, I spawn a camera pawn and save it as a reference to control it inside the same Event Graph like this:

(Again, sorry for the quality, it’s a cutout of an image, wanned to avoid complicating things with unrelated stuff)

You can do the same for those two pawns you got!

Hope this helps :innocent:

1 Like

SORRY for not responding sooner .

I happened to use the old input system .
Do you think you i can do it using that cuz i already have the controls ready or should i make it from start using the enhanced version?

Thank you for your time .

Of course! :blush: Mine was just an example. The main idea is controlling the second pawn in the same Event Graph with a reference. You don’t need Enhanced Input Actions in order to achieve it! Other than that, you can also get the reference any other way, such as using the Get All Actors of Class node instead of spawning the pawn we’re gonna reference.

Here’s something small I made to fit your specific use case:

You’re welcome :smiling_face_with_three_hearts:


Haha :rofl: What a coincidence @CHAOS_MAX! I was already working on editing this post so couldn’t notice your post below.

Here, I didn’t use the Spawn Actor node for you to be able to place the second pawn freely on the map. You can also use that if you like, I just thought it’d be better this way. It was also a nice coincidence to see you asking about that too, so here you go :innocent:

I am really new in unreal i am not sure how (get all actors of class) do or how to use it .

If you don’t mind can you tell me in what order do i connect them .

Sorry if i am annoying.

OMG It worked :grinning_face_with_smiling_eyes::grinning_face_with_smiling_eyes::grinning_face_with_smiling_eyes::grinning_face_with_smiling_eyes:.

Thank you so much :star_struck::star_struck::star_struck::star_struck:.

1 Like