I am trying to disable a circuit for the starters and since the starter is already defined as a circuit called CIRCUIT_STARTER:1 and CIRCUIT_STARTER:2 the circuit is off when not used. And on when triggered. So when I trigger an event to toggle off when this circuit is on, it's already too late as it's not actually on for a few seconds. So the only way to get this to work is to use an update section and flood the circuit off. I am hopping there is a better solution or maybe new code coming in the future that can always pull any circuit off when pulled. Toggles are the worst kind of event triggers. Set is much better for this exact reason.
Here is the logic I normally use for a breaker switch.
<LEFT_SINGLE_CODE_CALLBACKCODE> (L:GENERIC_CIRCUIT_START) 1 == (A:CIRCUIT ON:2, Bool) 1 == and if{ 2 (>K:ELECTRICAL_CIRCUIT_TOGGLE) } </LEFT_SINGLE_CODE_CALLBACKCODE>
Here is my update section that works but I am flooding.
<UseTemplate Name="ASOBO_GT_Update"> <FREQUENCY>18</FREQUENCY> <UPDATE_CODE> (L:GENERIC_CIRCUIT_START) 1 == (A:CIRCUIT ON:2, Bool) 1 == and if{ 2 (>K:ELECTRICAL_CIRCUIT_TOGGLE) } </UPDATE_CODE> </UseTemplate>
circuit.2 = Type:CIRCUIT_STARTER:1#Connections:bus.3:-1#Power:400,496,20#Name:Starter_LH ; Starter 3500W