Files
Basalt/docs/objects/Program.md
Robert Jelic c3e97ae516 Docs -> frames
Updated the frame object in docs
2022-10-26 00:19:00 +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