zones
August 3rd, 2008, 12:00 PM
I am trying to use RegisterVariableWatch and my lua fails when it calls the RegisterVariableWatch. I get the first messagebox but not the second, anyone see what my rookie mistake is.
function OnCCFLoad()
NetRemote.MessageBox('Load');
NetRemote.RegisterVariableWatch('MP.LinkActive',Ch eckState);
NetRemote.RegisterVariableWatch('Girder.LinkActive ',CheckState);
NetRemote.MessageBox('Load2');
end
local function CheckState(var, value, handle)
NetRemote.MessageBox('CheckState');
end;
function OnCCFLoad()
NetRemote.MessageBox('Load');
NetRemote.RegisterVariableWatch('MP.LinkActive',Ch eckState);
NetRemote.RegisterVariableWatch('Girder.LinkActive ',CheckState);
NetRemote.MessageBox('Load2');
end
local function CheckState(var, value, handle)
NetRemote.MessageBox('CheckState');
end;