Hi im trying to figure out how to spawn a certain character for the user to play when they select it. When the level starts i have a menu that is like choose a team, then from there depending on the team you choose you get a selection of classes to play. I’ve been trying to figure this out for the longest time and can’t find anything out there that relates. I have been able to spawn a new pawn and possess it but the game will register my old pawn still and when i try to fire my gun it will register as authority instead of remote even though i am a client on a dedicated server and furthermore if i run two or more clients when they spawn this way they wont be able to see each other either. Any help or direction would be great!
Spent the last couple of days trying to figure this out and didn’t go out for new years and figured it out. if someone else is curious how i did it let me know!
Happy New Year indeed!
Try using a “Possess Pawn” node in your player controller. Basically you will create your menu and have the buttons under each character link to a different “Possess Pawn” node detailing which character you want your player to use.
Ya i also had to destroy default pawn and then spawn the selected one at a point and then possess it. which from the menu i had to cast to default pawn and then after swap small delay and then cast to new pawn
Dear Vailfear, can you help me to do what you did? I’m breaking my head and cannot resolve it. I have a menu with 4 characters and I just need to select the one you want to use for playing. Thanks.
Done! (Unless youre on multiplayer, in which case you want to get a reference to the player controller that trigger the spawn event in the first place)