Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

OS Engine HScript API: Functions

notweuz edited this page Jun 21, 2022 · 1 revision

HScript functions

You can use HScripts almost like Lua scripts. There are several features here to help you:

update(elapsed:Float)

HScript API will fire it with (elapsed).

create()

HScript API will fire it on creating state.

beatHit(beat:Int)

HScript API will fire it on beat hit.

noteMissPress(key)

HScript API will fire it on pressing key w/o notes (ghosttapping must be disabled

onKeyPress(key:Int)

HScript API will fire it when pressing controls.

noteMiss(id, noteData, noteType, isSustainNote)

HScript API will fire it when player is missed note.

goodNoteHit(id, noteData, noteType, isSustainNote)

HScript API will fire it when player is pressing note.

opponentNoteHit(id, noteData, noteType, isSustainNote)

HScript API will fire it when player is pressing note.