Reaper79 Advanced Cheater Reputation: 2
Joined: 21 Nov 2013 Posts: 68 Location: Germany
|
Posted: Tue Sep 30, 2014 7:03 pm Post subject: Enable Script from Main script with LUA ? |
|
|
Hi there,
maybe it's simple, but i don't get it..
i just want to enable a "sub-script" from the "main-script" at "startup".
this is how it looks atm:
the main-script should set the toggle-script 1 active on click.
i've tried to use LUA code in the Enabled section of the main-script:
Code: |
[ENABLED]
{$LUA}
local ts1 = getAddressList().getMemoryRecordByDescription("Toggle Script 1")
if ts1 ~= nil then
ts1.Active = true
end
{$ASM}
|
but it won't work on startup. it works when i try this LUA code AFTER the main script is active.
any help would be fine.
|
|