zuert
(zuert)
August 5, 2015, 10:46am
358
Few things:
I am making a team game that is round-based but have ran into a few issues. For one, I want the teams to use a different player character for each team. I have altered the Respawn Player function to check the player’s team, and to respawn them as the appropriate character. This works, but the players only have the correct character once they have died and respawned and not on initial spawn. Is there somewhere I am missing that would affect this? Where is the spawning of players/beginning of the round handled? (Note: I am wanting to change the character blueprint, not just the visuals. Each team has different abilities and movesets)
I had this issue too.
I use the GetDefaultPawnClassForController function. I can now select my character in the lobby, and spawn with it. My characters have different abilities.
Another thing: I want the game to be round-based (think Counter-Strike) and only spawn players when each round begins. I have had little luck altering the logic on post-game to transition back to “playing” (I do not want to return players to wait for the match to begin, I want to spawn everything in as it works once the ready timer counts down to 0), how might I go about accomplishing this?
These have been frustrating me for the past few days, any help would be appreciated.
You can get all the player controller and respawn them in a loop.