Work in progress

Godot documentation is being updated to reflect the latest changes in version 4.0. Some documentation pages may still state outdated information. This banner will tell you if you're reading one of such pages.

The contents of this page are up to date. If you can still find outdated information, please open an issue.

OfflineMultiplayerPeer

Inherits: MultiplayerPeer < PacketPeer < RefCounted < Object

A MultiplayerPeer which is always connected and acts as a server.

Description

This is the default MultiplayerAPI.multiplayer_peer for the Node.multiplayer. It mimics the behavior of a server with no peers connected.

This means that the SceneTree will act as the multiplayer authority by default. Calls to MultiplayerAPI.is_server will return true, and calls to MultiplayerAPI.get_unique_id will return MultiplayerPeer.TARGET_PEER_SERVER.