I can't get my head around a problem I am having with variables triggering scenes. So, turning to the forum to see if anyone has any idea.
The problem I am having is that a scene is triggered by a variable even if the variable is not named in the LUA trigger section.
I created a scene with the following trigger definition:
--[[
%% autostart
%% properties
%% globals
Var1
Var2
--]]
The scene worked fine. It is triggered by changes in Var1 and Var2 as should be and the LUA code is executed. My debug code verfies it. I can see that both Var1 and Var2 are triggering the scene.
Next, I wanted to change the logic a little and no longer wanted Var2 to trigger the scene, only Var1. I still used Var2 in the code however, just not as scene trigger.
The new trigger definition looked as follows:
--[[
%% autostart
%% properties
%% globals
Var1
--]]
But, to my surprise, the scene is still triggered by Var2! My debug code reports that Var2 is indeed the trigger source. I am confused!
Restarting the HC2 does the trick though. After restarting, the scene works as designed and Var2 no longer triggers the scene.
The same behaviour also applies to block scenes. I have created a block scene using Var1 and Var2 in the if-statement and then unchecked Var2 it in the "Triggering variables" list. Same thing happens - Var2 keeps triggering the scene despite the fact that I have unchecked it. If I convert the block scene to LUA code I can see that Var2 is not in trigger definition and hence should not trigger the scene. But it still does!
Surely this must be a bug in the system right? Or I am missing something?
Question
perjar 7
Link to post
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.