Salta ai contenuti

Multiplayer

Questi contenuti non sono ancora disponibili nella tua lingua.

Multiplayer needs no setup. Shape changes are predicted on the player’s machine and checked by the server, the same way the engine’s crouch works. Players only send the preset’s number, so they cannot cheat with their collision shape.

  • Players change shape with Set Collision Shape Preset, called from their input like Crouch. Calling it on the server also works.
  • Set Collision Shape (any shape) is refused for remote players. Use a preset instead.
  • Use the preset’s Max Speed, Can Jump and Can Crouch instead of your own Blueprint checks, so the server and the player always agree.
  1. Next to the Play button, click the ⋮ menu.

  2. Set Number of Players to 2 and Net Mode to Play As Client.

  3. Press Play. Two game windows open.

    Play options menu: Number of Players 2, Net Mode Play As Client.

  4. Click into one window and open the console with `. Type these one at a time to simulate a bad connection:

    • Net PktLoss=5
    • Net PktLag=100
    • p.NetShowCorrections 1 (draws the server’s corrections)
    • show Collision
  5. Switch presets in that window (with your input, or VAC.Preset Crawl and VAC.Preset) while walking, jumping and crouching.

  6. Watch the other window: the shape and mesh of that player change smoothly.

    Two PIE windows side by side with show Collision: client 1 crawling, client 2 seeing the same lying capsule and mesh.

A few correction drawings under packet loss are normal: the engine’s own character gets them too.