make states numbers instead of booleans
This commit is contained in:
@@ -23,7 +23,7 @@ datablock fxDtsBrickData(LogicGate_Enabler10Bit_Data){
|
||||
logicInput = "";
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" if Gate.getportstate(gate, 21) then " @
|
||||
" if Gate.getportstate(gate, 21)~=0 then " @
|
||||
" Gate.setportstate(gate, 11, Gate.getportstate(gate, 1)) " @
|
||||
" Gate.setportstate(gate, 12, Gate.getportstate(gate, 2)) " @
|
||||
" Gate.setportstate(gate, 13, Gate.getportstate(gate, 3)) " @
|
||||
@@ -35,16 +35,16 @@ datablock fxDtsBrickData(LogicGate_Enabler10Bit_Data){
|
||||
" Gate.setportstate(gate, 19, Gate.getportstate(gate, 9)) " @
|
||||
" Gate.setportstate(gate, 20, Gate.getportstate(gate, 10)) " @
|
||||
" else " @
|
||||
" Gate.setportstate(gate, 11, false) " @
|
||||
" Gate.setportstate(gate, 12, false) " @
|
||||
" Gate.setportstate(gate, 13, false) " @
|
||||
" Gate.setportstate(gate, 14, false) " @
|
||||
" Gate.setportstate(gate, 15, false) " @
|
||||
" Gate.setportstate(gate, 16, false) " @
|
||||
" Gate.setportstate(gate, 17, false) " @
|
||||
" Gate.setportstate(gate, 18, false) " @
|
||||
" Gate.setportstate(gate, 19, false) " @
|
||||
" Gate.setportstate(gate, 20, false) " @
|
||||
" Gate.setportstate(gate, 11, 0) " @
|
||||
" Gate.setportstate(gate, 12, 0) " @
|
||||
" Gate.setportstate(gate, 13, 0) " @
|
||||
" Gate.setportstate(gate, 14, 0) " @
|
||||
" Gate.setportstate(gate, 15, 0) " @
|
||||
" Gate.setportstate(gate, 16, 0) " @
|
||||
" Gate.setportstate(gate, 17, 0) " @
|
||||
" Gate.setportstate(gate, 18, 0) " @
|
||||
" Gate.setportstate(gate, 19, 0) " @
|
||||
" Gate.setportstate(gate, 20, 0) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user