sys_exit(STRING*)

Ends the application and shuts down the engine. The given string is printed into the exit window (if any).

Parameters

STRING* - pointer to a STRING* or char* to be printed in the exit window.

Remarks

The engine closes one frame after the function call. Immediately before shutting down the on_exit event is triggered.

Example:

function gexit() { sys_exit("bye bye..."); }
...
on_x = gexit; // [x] exits the game

See also:

beep ► latest version online