My addon used this construction
XML file:
<Scripts>
<OnUpdate>
MyAddon_OnUpdate(arg1);
</OnUpdate>
</Scripts>
Lua file:
function MyAddon_OnUpdate(Elapsed)
MyAddon_TimeSinceLastUpdate = MyAddon_TimeSinceLastUpdate+Elapsed;
...
end
This however does not work anymore, how should I change it so that it works?