Local Multiplayer UE5 Connecting 2 players
2 min readJan 4, 2024
Want to create a local multiplayer game? Well let’s start with the basics.
First let’s start up a new C++ project in the first or third person example. Next go to the play area and change how many players are available to play.
You’ll want to chang the net mode to play as listen server.
If you hit play there are now 2 player instances.
I ejected out and you can see the 2 player instances.
Both can be controlled in each individual window.
How does this happen? Well here are the steps that would allow local players in an instance.
- Unreal loads the map
- The Map specifies the GameMode
- The PlayerController joins the Map
- It ask the GameMode to spawn a Pawn
- The Pawn is linked to the PlayerController
This is the first steps on getting local multiplayer running for your game! Stay tuned for more.