View source
interface IPlayStateScriptedClass
package funkin.modding
extends IBPMSyncedScriptedClass, INoteScriptedClass
import funkin.modding.IScriptedClass
extended by Module, Song, Bopper, Stage
Available on all platforms
Defines a set of callbacks available to scripted classes that involve the lifecycle of the Play State.
Methods
onGameOver(event:ScriptEvent):Void
Called as the player runs out of health just before the game over substate is entered.
onNoteGhostMiss(event:GhostMissNoteScriptEvent):Void
Called when the player presses a key when no note is on the strumline.
onPause(event:PauseScriptEvent):Void
Called when the game is paused. Has properties to set whether the pause easter egg will happen, and can be cancelled by scripts.
onSongLoaded(event:SongLoadScriptEvent):Void
Called when the song has been parsed, before notes have been placed. Use this to mutate the chart.
onSongRetry(event:SongRetryEvent):Void
Called when the player restarts the song, either via pause menu or restarting after a game over.