Edit

Share via


PlayerGameModeChangeBeforeEventSignal Class (Version 1.x.x)

Important

This documentation is for an older version of this module. Go to the latest documentation here.

Manages callbacks that are connected to before a players game mode is changed.

Methods

subscribe

subscribe(callback: (arg0: PlayerGameModeChangeBeforeEvent) => void): (arg0: PlayerGameModeChangeBeforeEvent) => void

Adds a callback that will be called before a players game mode is changed.

Parameters

Returns (arg0: PlayerGameModeChangeBeforeEvent) => void

Notes:

  • This function can't be called in read-only mode.
  • This function can be called in early-execution mode.

unsubscribe

unsubscribe(callback: (arg0: PlayerGameModeChangeBeforeEvent) => void): void

Removes a callback from being called before a players game mode is changed.

Parameters

Notes:

  • This function can't be called in read-only mode.
  • This function can be called in early-execution mode.