Luawe All pages

markers

The level's markers: named signals on the timeline. A script listens for the ones it wants, and looks them up.

markers.onfunction

markers.on([name: string,] f: function): connection

Calls f each time the song gets to a marker with that name, with the marker's values and then the marker: markers.on("DoShake", function(intensity, length, marker) ... end). With no name, f is called for every marker, with the marker alone.

ValueType
namestringMay be left out.
ffunction

Gives: connection.

markers.namedfunction

markers.named(name: string): list of marker

A list of the level's markers with that name, in the order of their beats.

ValueType
namestring

Gives: list of marker.

markers.allfunction

markers.all(): list of marker

A list of all the level's markers, in the order of their beats.

Gives: list of marker.

markers.nextfunction

markers.next(name: string or nil): marker or nil

The next marker the song has yet to get to: any, or the next one with that name. None left: nil.

ValueType
namestring or nilMay be left out.

Gives: marker or nil.