795
« on: May 18, 2015, 02:55:20 AM »
I have run into a problem with signal tables from the scripting manual in it it has the sig table like this
SignalTable = { -------sig table number goes here I think without {
[mc.ISIG_INPUT0] = function (on_off)
if (on_off == 1) then
mc.mcCntlCycleStart(inst)
end
end
I keep get a error this
Compilation error on line number: 54
Lua: Syntax error during pre-compilation
[string "C:\Users\Daniel\AppData\Local\Temp\le6115.mcc..."]:54: unexpected symbol near '['
I have searched but cant find anything to help I used this and it work`s
if (sig == mc.ISIG_INPUT1) and (state == 1) then
local inst = mc.mcGetInstance()
mc.mcCntlCycleStart(inst)
end