Blueprint
Scene: Blueprint_Multiplayer
The Modular Weapon System’s Blueprint Example for up to 8 players. Every player gets the five Blueprint weapons, with the same controls as the single-player example, in their own part of the screen.
🔫 The Player
| Part | Setup |
|---|---|
BPNetworkPlayer | Variant of the MWS BPPlayer with a NetworkObject |
| Network Weapon | One on the root for all five weapons, including the DualWeapon grenade rifle and shotgun |
BPNetworkPlayerInput | Sends the owner’s aim, weapon, shoot, reload and testing mode input to the server and syncs them to the other clients |
BPNetworkExplosiveBullet, BPNetworkRocket and BPNetworkExplosion are network variants of the grenade, rocket and explosion, spawned by the server with Network Auto Spawn.
🖥️ The Layout
BPPlayerLayout splits the screen into one cell per player, in client order. One or two players share one row, and from three players on the players are split over two rows. Each machine lays out the players for its own screen.
🎯 Testing Mode
Any player can switch to testing mode. While at least one player is testing, BPNetworkTesting shows the wall, and the server spawns BPNetworkTarget targets that everyone can shoot.