How can I change default pawn class using bp?

Hi I’m making a game that has a selection of a gender of the player and when the gender is picked i want the GameModes to use the pawn class(Mesh) that the player has set for example female he would get spawned with a female character and if he restarts the game he would still have the same character so his choice would save.

Best Regards,
Nijo :slight_smile:

Override the SpawnDefaultPawnFor function in the GameMode.

I have only done this in C++, but it appears like it will work in BP’s as well as I confirmed the function is available to override.

Unfortunately this method doesn’t work at least for me :confused:
Anyway Thanks!

Setting varable won’t help because GameMode will reset when you open new level, you can try using SpawnDefaultPawnFor with GameInstance which wont reset and will remember menu selection

Sorry but i can’t find that node :confused: even with “get game instance”

Spawn Default Pawn For is not a node it is a function in the Game Mode derived BP that you have to override.