• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    RemoteFunction

    The RemoteFunction class in represents a remote function that can be invoked and heard on the client and server side. It enables communication between server and client scripts by allowing remote calls to be made and handled with params that you define yourself.

    Properties

    OnInvokeClient

    ClientAndServer

    Callback function for the client that is triggered by the server. Parameters are determined by what was passed into InvokeClient.

    OnInvokeServer

    ClientAndServer

    Callback function for the server that is triggered by the client. Parameters are determined by what was passed into InvokeServer.

    name

    string
    ClientAndServer
    ReadOnly

    The name of the remote function.

    Methods

    InvokeClient

    ClientAndServer

    Invokes the remote function on the client side. The player to invoke the function for.

    Parameters

    player

    The player to invoke the function for.

    __ELLIPSIS__
    any

    Returns

    void

    InvokeServer

    ClientAndServer

    Invokes the remote function on the server side.

    Parameters

    __ELLIPSIS__
    any

    Returns

    void

    Updated 9 days ago

    PocketWorlds Icon

    © 2025 Pocket Worlds. All rights reserved.