use correct nodes for elec
This commit is contained in:
parent
60af6c024b
commit
8890a073b9
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ var triggerDoor = func(door, doorName, doorDesc) {
|
||||||
};
|
};
|
||||||
|
|
||||||
setlistener("/controls/doors/doorc-switch",func(a){
|
setlistener("/controls/doors/doorc-switch",func(a){
|
||||||
if (getprop("systems/electrical/bus/dc-2")>25 or getprop("systems/electrical/bus/dc-1")>25) {
|
if (systems.ELEC.Bus.dc1.getValue() > 25 or systems.ELEC.Bus.dc2.getValue() > 25) {
|
||||||
var pos = a.getValue();
|
var pos = a.getValue();
|
||||||
var current = getprop("/sim/model/door-positions/doorc/lock-status");
|
var current = getprop("/sim/model/door-positions/doorc/lock-status");
|
||||||
if (pos == 1 and current == 0) { ## LOCK
|
if (pos == 1 and current == 0) { ## LOCK
|
||||||
|
|
Loading…
Reference in a new issue