Select Random pawn for player

Hello,

I’ve looked online to try and find a solution and only found things on posession or getting the default pawn class but not modifying it.

Anyways, I have a 2D sidescroller im making into a co-op game. I want players to spawn in with a pawn, based on what player number they are. IE like the old arcade games where player one would always be this character, 2 would be this specific one. etc

I’d like to write the logic in C++ but am not finding any good information on how to proceed and none of the information I did find seems to be what im looking for. I assume I’ll have to do some logic in my GameMode, and probably override its spawn mechanics for players, but looking at the wiki entry for the class didnt give me the info i needed.

TL/DR: How can I make my game spawn a different character class for each player on level start (or otherwise) based on the player number they are?

Any help is greatly appreciated.

i don’t know if i can bump, or something like that but i’m fowarding to know ir to.

https://i.imgur.com/xNwRT7i.png :stuck_out_tongue_winking_eye:

you sir are a gentleman and a scholar