Table of Contents

Enum MultiplayerApi.RpcMode

Namespace
Godot
Assembly
GodotSharp.dll
public enum MultiplayerApi.RpcMode : long

Fields

AnyPeer = 1

Used with RpcConfig(StringName, Variant) to set a method to be callable remotely by any peer. Analogous to the @rpc("any_peer") annotation. Calls are accepted from all remote peers, no matter if they are node's authority or not.

Authority = 2

Used with RpcConfig(StringName, Variant) to set a method to be callable remotely only by the current multiplayer authority (which is the server by default). Analogous to the @rpc("authority") annotation. See SetMultiplayerAuthority(int, bool).

Disabled = 0

Used with RpcConfig(StringName, Variant) to disable a method or property for all RPC calls, making it unavailable. Default for all methods.