Hi all,
I just started to get my head arround the LUA stuff and trying to get a simple singnal scirpt working.
As a simple starting point I wanted to use my Probe to actually trigger the status of an general output.
I have added a few lines of code in my SigLib in the Screen Load script:
[mc.ISIG_PROBE] = function (state)
inst = mc.mcGetInstance()
local out1handle = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT1)
local out1state = mc.mcSignalGetState(out1handle)
if (state == 1) then
mc.mcSignalSetState(out1state, true)
else
mc.mcSignalSetState(out1state, false)
end
end,
As far as I understand it should act on my Probe as input.
Get the handle and state for desired output and set it accordingly.
However - this doesn't actually work.
What am I doing wrong here??