Download

Multiplayer RTS game - Spawning Units

Hi - sorry in advance if this is pretty basic :slight_smile:

I’ve got a simple “game” running where I have some units that I’ve placed on a map and one player can select and move these units. I want to change things so that as players join the game, they spawn their own units. What class should handle spawning units for each player (Player State)?

My current set up is that I have a player controller which controls a camera pawn. Mouse selection allows selecting any units (characters). I’d also like to know a good way to track which player each unit belongs to.

Cheers!

1 Like