Engine:CLUA script
Runs an engine script from the Lua runtime.
script "var bob fred"
ArgumentsEdit
- script - the block of text to be run as a script in the engine.
AssociationsEdit
- Is by default placed in the default Lua runtime.
DetailsEdit
A global Lua runtime function that runs a script from Lua.
ExamplesEdit
Default valuesEdit
From Lua creates an engine variable 'bob' and prints its value:
script 'var bob fred;bob'
Creates a Lua function that sets and prints an engine variable and runs it from script, all from inside Lua.
function fred(s) script 'bob ' + s + ';bob' end
script "lua fred 'james'"
- Prints 'james'