Script Processing Order
Posted: Friday 31 August 2018 10:32
Hi,
Suppose I have 10 scripts all triggered by the same motion sensor... one of which actually turns the light on and the rest of which are less urgent. How can I ensure the one that turns the light on runs first? If I cant is there to call a dzvents script at the end of another script (so main script is called by the motion sensor, other script called at the end) Ideally in this case the other script needs to be dzvents as it will have other triggers.. cant be a generic lua function easily I dont think.
Cheers,
Dan
Suppose I have 10 scripts all triggered by the same motion sensor... one of which actually turns the light on and the rest of which are less urgent. How can I ensure the one that turns the light on runs first? If I cant is there to call a dzvents script at the end of another script (so main script is called by the motion sensor, other script called at the end) Ideally in this case the other script needs to be dzvents as it will have other triggers.. cant be a generic lua function easily I dont think.
Cheers,
Dan