Wednesday, January 6, 2010

Lua in the house

We are now supporting lua scripts. These are intended to be used for behavioral scripts, the declarative scripts are still in XML.

To execute a lua script file simply use the ExecuteLuaScript action as below

Global.ExecuteLuaScript():FilePath("Test.lua")

Where Test.lua is the filename of the script. This can either be ASCII or a compiled script.

To access our console from the Lua scripts, use the RelayCommand as follows:

RelayCommand ('Global.Echo():Text("This is a Lua script")')

No comments: