Files
Basalt/docs/objects/Program.md
Robert Jelic bf1b008084 Docs update
Some more stuff for docs
2022-10-09 14:00:35 +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