import{_ as a,o as s,c as o,Q as e}from"./chunks/framework.4313453f.js";const u=JSON.parse('{"title":"Program","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"references/program.md","filePath":"references/program.md","lastUpdated":null}'),r={name:"references/program.md"},t=e(`
Program objects allow you to execute other programs within your main application. You can run programs such as worms, shell, or any custom programs you’ve created.
| Property | Type | Description |
|---|---|---|
| program | object | The internal program object |
Starts a existing program
string Path to the programobject The object in uselocal mainFrame = basalt.addFrame()
local aProgram = mainFrame:addProgram()
aProgram:start("path/to/your/program.lua")local mainFrame = basalt.addFrame()
local aProgram = mainFrame:addProgram()
aProgram:start("path/to/your/program.lua")