Vitus
Resource contributor
- Messages
- 1,480
- Country

Hello again,
next issue: some of my triggers refuse to work properly. For instance my "main battery switch":
I defined a custom variable "L:SWITCH MASTER" which is triggered through modeldef.xml code. A invisible gauge is supposed to handle all the complex events related to this variable - debugging is much easier that way, as I don't have to reprocess the hole model after changing in the code.
Here is the code for the hidden gauge:
The strange thing is that the avionics master is set correctly, where the status of ELECTRICAL MASTER BATTERY stays "on". I have the same issue with my starter buttons. They don't work as well:
I hope you can help me with this.
Regards
Vitus
next issue: some of my triggers refuse to work properly. For instance my "main battery switch":
I defined a custom variable "L:SWITCH MASTER" which is triggered through modeldef.xml code. A invisible gauge is supposed to handle all the complex events related to this variable - debugging is much easier that way, as I don't have to reprocess the hole model after changing in the code.
Here is the code for the hidden gauge:
Code:
[...]
<Update>
<Frequency>2</Frequency>
<Script>
(L:SWITCH MASTER,bool) 0 ==
if{
(A:ELECTRICAL MASTER BATTERY,bool) 0 >
if{
(>K:TOGGLE_MASTER_BATTERY)
}
}
0 (>K:AVIONICS_MASTER_SET)
[...]
}
els{
(A:ELECTRICAL MASTER BATTERY,bool) 0 ==
if{
(>K:TOGGLE_MASTER_BATTERY)
}
1 (>K:AVIONICS_MASTER_SET)
[...]
}
</Script>
</Update>
<UpdateWhenHidden>True</UpdateWhenHidden>
The strange thing is that the avionics master is set correctly, where the status of ELECTRICAL MASTER BATTERY stays "on". I have the same issue with my starter buttons. They don't work as well:
Code:
(L:BUTTON STARTER LEFT,bool) 0 >
if{
(A:GENERAL ENG STARTER:1,bool) 0 ==
if{
(>K:TOGGLE_STARTER1)
}
}
I hope you can help me with this.
Regards
Vitus
