Files
Basalt/docs/docs1_6/objects/Program/execute.md
Robert Jelic d4c72514ef Docs 1.6
Accidentally uploaded outdated 1.6 docs
2023-05-01 16:28:46 +02:00

452 B

execute

Executes the given path or program

Parameters:

  1. string|function the path to your file as string, or function which should be called

Returns:

  1. object The 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" />