Skip to content

Script Events

kai edited this page Jun 25, 2026 · 3 revisions

As of 0.1.1

(Note cancellation doesn’t work as intended as of yet, try to find some workarounds in the meantime.)

Generic Events

ScriptEvent

This is a Script Event that each other Script Event extends.

  • cancelled:Bool - whether the function is cancelled or not.
  • cancel():Void - cancels current (cancellable) function.
  • cancellable():Bool - whether the function is cancellable or not.

UpdateEvent (extends ScriptEvent)

Event used for onUpdate and similar functions. This event is not cancellable.

  • elapsed:Float - time since last frame

StepHitEvent (extends ScriptEvent)

Event used for onStepHit and similar functions. This event is not cancellable.

  • curStep - current step (16th note)
  • curBeat - current beat
  • curSection - current section/measure
  • curDecStep - current step (in decimal)
  • curDecBeat - current beat (in decimal)

Clone this wiki locally