Skip to main content
Version: Current

system

  • OpenConsoleAction

    An event that is used to toggle whether the console is open.

    Members

    • open boolean

      Whether the console should be open.

    • type "open_console"

    • uncopiable? boolean

      Whether the action can be structure cloned. If true, then the action should not be passed across message ports without special handling.

  • RunScriptAction

    Defines an event that executes a script.

    Members

    • playerId? string

      The ID of the player that created this task. Set by remote action handlers when a task is recieved from a remote player.

    • script string

      The script that should be executed.

    • taskId (string | number)

      The ID of the async task.

    • type "run_script"

      The type of the event. This helps determine how the event should be applied to the state.

    • uncopiable? boolean

      Whether the action can be structure cloned. If true, then the action should not be passed across message ports without special handling.