Hey, just a quick question, how can I execute a ComponentLua No.2 inside a Plugin?
BECOME PART OF THE COMMUNITY - Sign up here
As far as I can tell all Plugin components are loaded into the same name space. provided the function is not local you can just call it from the any other plugin. I suspect there might be a better way to do this but looking at the built in plugins this is how they do it.
So if you have two LUA files loaded into your XML:
And in file2.lua you have the following function:
and the following in file1.lua:Code
also looking at the hardware test plugins you probably want to make the global functions Globally unique by making your own "namespace" so you don't end up with Collisions. For example:
Ok it worked, thanks!