Skip to content

multiplayer.is_server() returns true by default #92066

Open
@dev-cyprium

Description

@dev-cyprium

Tested versions

  • Reproducable in v4.2.2.stable.official [15073af]

System information

Godot v4.2.2.stable - Windows 10.0.22631 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 3070 (NVIDIA; 31.0.15.5244) - AMD Ryzen 7 3700X 8-Core Processor (16 Threads)

Issue description

multiplayer.is_server() returns true in a fresh project. It's not stated like that in the documentation.

Steps to reproduce

  • Create a new Godot project
  • in the _ready() function simply print(multiplayer.is_server())
  • the returning value is true even though the peer is Offline

Minimal reproduction project (MRP)

TEst.zip
TEst.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions