12.10.2021, 12:19
(13.05.2021, 08:46)jamesng Wrote: Hi
Here is the output of the your test code - it's working
Code:TEST 13.05.2021 18:43:24
* arg: 1
* bool: true
* arg: 2
* nil
I found the error in my earlier code too .. working function below
Code:-- Change active status of script
function enableScript(scriptname, active)
if active == true then
script.enable(scriptname)
log('Script "' .. scriptname .. '" is active')
else
script.disable(scriptname)
log('Script "' .. scriptname .. '" is disabled')
end
end
Many thanks
Kind Regards
James
Im just a beginner, but i hope you will help me.
I will activate and disable a 'Resident script' depending on a feedback object of a output.
the group object is 1/4/53 (bedroom [fb])
when this object is true i will run a script to activate the 'Resident script' called 'bedroom [fb], turn off'
and the same but turn it off by the same group adress
when this object is false i will run a script to disable the 'Resident script' called 'bedroom [fb], turn off'
I saw you will do the same, but i dont know how to use this script.