49
edits
(Created page with "{{dev/uiclua}} Runs an engine script from the Lua runtime. <kua>script "var bob fred"</kua> == Arguments == * script - the block of text to be run as a script in the engine. == Associations == * Is by default placed in the default Lua runtime. == Details == A global Lua runtime function that runs a script from Lua. == Examples == === Default values === From Lua creates an engine variable 'bob' and prints its value: <lua> script 'var bob fred;bob' </lua> In Lua creat...") |
|||
| Line 18: | Line 18: | ||
script 'var bob fred;bob' | script 'var bob fred;bob' | ||
</lua> | </lua> | ||
Creates a function that sets and prints a variable and runs it from script, all from inside Lua. | |||
<lua> | <lua> | ||
function alan(s) script 'bob ' + s + ';bob' end | function alan(s) script 'bob ' + s + ';bob' end | ||