How to swap characters during runtime?

I have 2 characters that i want to swap from (for now) but im not understanding how to get it set up.

These are the 2 characters i want to switch between with the first pic being the main character


I tried setting it up using this, but the 2nd character had no movement and a bunch of error codes popped up.

Any tip or video i can watch to figure out how to swap characters using this method?

Hey @oAnubus!

You’ll want to use the “Possess” node once the other character is spawned, and pass in your player controller. You’ll also want to put ANY code you want to execute BEFORE destroyActor, as once it’s destroyed, any code is stopped because it doesn’t exist anymore.

I would suggest making a dispatcher, and running the SpawnActor and Possess nodes on the GameMode Blueprint! That way you don’t somehow have 2 on the screen.

So on each player character it would be:

Character toggle Input>Dispatch to GameMode Event to spawn/possess OTHER char> DestroyActor(self) :slight_smile:
If you need any additional help let us know!

To make sure im doing this right, It should be set up like this? I tested this out and the character spawns in but under the example map.

(This is my first time using the event dispatcher so I don’t have too much knowledge of what it does)




This is what things currently look like

Hey again @oAnubus!

So what’s going on here is you’re setting your character on game start. Can’t do that because after the first switch out that character doesn’t exist anymore, any more switch ins are clones of that one, so that set will be broken. Gotta get the current one! (Ignore my SpawnActor settings, they’re a placeholder for you)

1 Like

Thank you so much for the help. There are other issues that popped up but this one has been solved!

Well if any of them are head-scratchers, feel free to make another post and we’ll get those sorted, too! :slight_smile: