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

OS Engine Lua Script API: Variables and Functions

notweuz_ edited this page Jul 12, 2022 · 2 revisions

OS Engine's exclusive functions

Variables and Instance Functions

pcUserName()

Returns PC username (may be innacurate)

setWindowTitle(name:String)

Will change Window Title name to selected.

setBotPlayText(value:String)

Sets selected text as "BOTPLAY".

setWatermarkText(value:String)

Sets selected text as watermark (text in left-bottom corner)

setRating(ratingindex:Int, ratingname:String)

Sets selected name for selected rating Rating indexes:

  1. You Suck
  2. Shit
  3. Bad
  4. Bruh
  5. Meh
  6. Nice
  7. Good
  8. Great
  9. Sick!
  10. Perfect!!!

Stage/Objects Functions

setupStageObject(tag:String)

Adds a stage editor object from mod/objects folder

Other Functions

openURL(url:String)

Opens selected url in browser (vs bob vibes)