An event that is fired when you press a key with no note present.

Constructor

new(dir:NoteDirection, hasPossibleNotes:Bool, healthChange:Float, scoreChange:Int)

Variables

read onlydir:NoteDirection

The direction that was mistakenly pressed.

read onlyhasPossibleNotes:Bool

Whether there was a note within judgement range when this ghost note was pressed.

healthChange:Float

How much health should be lost when this ghost note is pressed. Remember that max health is 2.00.

playAnim:Bool

Whether to play the miss animation on the player.

playSound:Bool

Whether to play the record scratch sound.

scoreChange:Int

How much score should be lost when this ghost note is pressed.

Methods

Inherited Variables

Defined by ScriptEvent

read onlycancelable:Bool

If true, the behavior associated with this event can be prevented. For example, cancelling COUNTDOWN_START should prevent the countdown from starting, until another script restarts it, or cancelling NOTE_HIT should cause the note to be missed.

read onlyeventCanceled:Bool

Whether the event has been canceled by one of the scripts that received it.

read onlyshouldPropagate:Bool

Whether the event should continue to be triggered on additional targets.

read onlytype:ScriptEventType

The type associated with the event.

Inherited Methods

Defined by ScriptEvent

cancel():Void

Cancel this event. This is an alias for cancelEvent() but I make this typo all the time.

cancelEvent():Void

Call this function on a cancelable event to cancel the associated behavior. For example, cancelling COUNTDOWN_START will prevent the countdown from starting.

stopPropagation():Void

Call this function to stop any other Scripteds from receiving the event.