Logic Machine Forum
Run a LUA script via another script - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Run a LUA script via another script (/showthread.php?tid=4103)



Run a LUA script via another script - Kilogica - 21.06.2022

Hello,

is it possible to run a script via another script?


RE: Run a LUA script via another script - Daniel - 21.06.2022

You can enable, disable one script by another
script.enable('scriptname')
script.disable('scriptname')


RE: Run a LUA script via another script - Kilogica - 21.06.2022

Yes, I already know that thanks.

But what if I want to trigger that script by another script? I had to make a virtual object and trigger the script or it can be done via code?

Many thanks!


RE: Run a LUA script via another script - Daniel - 21.06.2022

Yes use virtual object.