Skip to content
M2O Scripting APIScripting reference
Global objectClient APIGenerated

Fade

const Fade: object

Defined in: client/api.d.ts:637

Controls the game’s full-screen scene fader.

in(durationSeconds, blockInput?): boolean

Fades from black back into the game scene.

number

Fade duration in seconds; negative values are clamped to zero.

boolean

Whether the game should block player input during the transition.

boolean

True when the fade was started; false when the game fader is unavailable.

out(durationSeconds, blockInput?): boolean

Fades the game scene to black.

number

Fade duration in seconds; negative values are clamped to zero.

boolean

Whether the game should block player input during the transition.

boolean

True when the fade was started; false when the game fader is unavailable.