import{_ as a,c as s,o as t,a4 as e}from"./chunks/framework.nQaBHiNx.js";const m=JSON.parse('{"title":"Program","description":"","frontmatter":{"outline":"deep"},"headers":[],"relativePath":"references/program.md","filePath":"references/program.md","lastUpdated":null}'),i={name:"references/program.md"},r=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")