make states numbers instead of booleans
This commit is contained in:
@@ -23,16 +23,16 @@ datablock fxDtsBrickData(LogicGate_Buffer4Bit_Data){
|
||||
logicInput = "";
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" if Gate.getportstate(gate, 9) then " @
|
||||
" if Gate.getportstate(gate, 9)~=0 then " @
|
||||
" Gate.setportstate(gate, 5, Gate.getportstate(gate, 1)) " @
|
||||
" Gate.setportstate(gate, 6, Gate.getportstate(gate, 2)) " @
|
||||
" Gate.setportstate(gate, 7, Gate.getportstate(gate, 3)) " @
|
||||
" Gate.setportstate(gate, 8, Gate.getportstate(gate, 4)) " @
|
||||
" else " @
|
||||
" Gate.setportstate(gate, 5, false) " @
|
||||
" Gate.setportstate(gate, 6, false) " @
|
||||
" Gate.setportstate(gate, 7, false) " @
|
||||
" Gate.setportstate(gate, 8, false) " @
|
||||
" Gate.setportstate(gate, 5, 0) " @
|
||||
" Gate.setportstate(gate, 6, 0) " @
|
||||
" Gate.setportstate(gate, 7, 0) " @
|
||||
" Gate.setportstate(gate, 8, 0) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user