Skip to content

Commands Exit

drako0812 edited this page Nov 12, 2017 · 1 revision

exit

Usage

exit()

Description

exit quits execution of the currently loaded game.

Currently, it also exits DRAK-0 itself.

Example

trace("This is printed to the console");
exit();
trace("This should not print, but in the current version does");
def update() {
  trace("This also never gets printed");
}

This is an example of exit that should end execution of the script.

Currently this does not happen.

Clone this wiki locally