How Can i select default Pawn class from button?


Is there a way I can have each button select a certain default pawn for the level? please help

Possessing Pawns:
https://docs.unrealengine.com/5.3/en-US/possessing-pawns-in-unreal-engine/

I’m kinda confused how I implement that with my level code i’m trying not to break my entire game lol… sorry im noob. would I add that code before or after open level?

What I’d do:

1 - Inform what Pawn you want to use in Open Level using Options:
https://docs.unrealengine.com/4.26/en-US/BlueprintAPI/Game/OpenLevel/

2 - In your Level’s Game Mode use Init Game to get the Option:
https://docs.unrealengine.com/5.3/en-US/API/Runtime/Engine/GameFramework/AGameModeBase/InitGame/

3 - Now I’d have to test, but I’d Get Player Controller in Init Game and call a function in the PlayerController informing which Pawn I wanted to use, calling Possess(MyPawn).

dang, if someone can drop a blueprint screenshot that would save me cause that is a bit confusing for me