What did set_custom_multiplayer change to in godot 4?

Godot Version

4.3

Question

Was following an outdated server tutorial and in the gateway server part there are these following lines:

var gateway_api = MultiplayerAPI.new()

network.create_server(port, max_players)
set_custom_multiplayer(gateway_api)
custom_multiplayer.set_root_node(self)
custom_multiplayer.set_network_peer(network)

How this translates to godot 4? I searched everywhere but couldn’t find. I only know that MultiplayerAPI.new() is now simply MultiplayerAPI

i think its set_multiplayer():

get_tree().set_multiplayer(gateway_api)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.