Can you not simply let them have a variable called otherCharacter that you use?
Hi all. I’m trying to figure out how to switch between characters during a game.
The idea is the one character follows the other and you can press a button to switch to the other character which is normally following.
I know i can possess and unpossess, but i cant figure out how to find the character in the level.
Any hints or clues would be very much appreciated.
Thanks all!
You could use a “Get all actors of Class” function to find your other character, to then Possess them
I thought i would set it up in the game mode. The game mode will always be there.
But i just cabt figure this out.
Here’s some easy to follow documentation: https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/PossessPawns/Blueprints/
https://docs.unrealengine.com/latest/images/Gameplay/HowTo/PossessPawns/Blueprints/Pawns9.jpg
Trust me, I’ve read the documentation. Yes this works, but its anything but perfect.
If i did it in the level blueprint, i would have to redoit in every singke level. Hence why i wanted it either in the gamemode. The gamemode always exists.
I intend to eventually add sone form of camera effects, (fade to black etc.) So doing it in the level blueprint just isnt practical.
Then why dont you do it as as I said?
You said between two characters, which means that you can make two characters, give each a variable to the other character and simply swap between them using the player controller.