452 B
452 B
execute
Executes the given path or program
Parameters:
string|functionthe path to your file as string, or function which should be called
Returns:
objectThe object in use
Usage:
- Executes worm
local mainFrame = basalt.createFrame()
local aProgram = mainFrame:addProgram()
aProgram:execute("rom/programs/fun/worm.lua") -- executes worm
<program path="rom/programs/fun/worm.lua" execute="true" />