M2O Scripting APIScripting reference
    Preparing search index…
    Global objectClient API

    Controls

    Controls: {
        disable(): void;
        enable(): void;
        isEnabled(): boolean;
        setEnabled(enabled: boolean): void;
    }

    Controls whether local gameplay input is accepted by the M2O client.

    Type Declaration

    • disable: function
    • enable: function
    • isEnabled: function
      • Checks whether local gameplay controls are currently enabled.

        Returns boolean

        True when gameplay input is accepted.

    • setEnabled: function
      • Sets whether local gameplay controls are enabled.

        Parameters

        • enabled: boolean

          True to accept gameplay input; false to lock it.

        Returns void