Files
Basalt/docs/docs1_6/objects/Program.md
Robert Jelic d4c72514ef Docs 1.6
Accidentally uploaded outdated 1.6 docs
2023-05-01 16:28:46 +02:00

1.1 KiB

Program objects are here for opening other executable programs in your main program. You can execute worms, shell or any custom program you've made.

Object methods also apply for programs.

getStatus Returns the current program status
execute Executes a program
stop Stops the currently running program
pause Pauses the currently running program
isPaused Returns if the program is paused
injectEvent Injects a event into the program
injectEvents Injects a table of events
getQueuedEvents Returns currently queued events
setEnviroment Changes the default enviroment to a custom one

Events

This is a list of all available events for programs:

onError Fires when a program errors
onDone Fires when a program has finished