fix doors

This commit is contained in:
Jonathan Redpath 2017-08-07 16:25:11 +01:00
parent 12bd5a3a42
commit 8c9bc9c80a
8 changed files with 57 additions and 57 deletions

View file

@ -50,7 +50,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl1, "doorl1", "PAX left-front (main)");
libraries.triggerDoor(libraries.doorl1, "doorl1", "PAX left-front (main)");
</script>
</binding>
</action>
@ -98,7 +98,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr1, "doorr1", "PAX right-front");
libraries.triggerDoor(libraries.doorr1, "doorr1", "PAX right-front");
</script>
</binding>
</action>
@ -146,7 +146,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl3, "doorl3", "PAX left");
libraries.triggerDoor(libraries.doorl3, "doorl3", "PAX left");
</script>
</binding>
</action>
@ -194,7 +194,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr3, "doorr3", "PAX right");
libraries.triggerDoor(libraries.doorr3, "doorr3", "PAX right");
</script>
</binding>
</action>
@ -244,7 +244,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.cargofwd, "cargofwd", "forward cargo");
libraries.triggerDoor(libraries.cargofwd, "cargofwd", "forward cargo");
</script>
</binding>
</action>
@ -279,7 +279,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.cargoaft, "cargoaft", "aft cargo");
libraries.triggerDoor(libraries.cargoaft, "cargoaft", "aft cargo");
</script>
</binding>
</action>

View file

@ -50,7 +50,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl1, "doorl1", "PAX left-front (main)");
libraries.triggerDoor(libraries.doorl1, "doorl1", "PAX left-front (main)");
</script>
</binding>
</action>
@ -98,7 +98,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr1, "doorr1", "PAX right-front");
libraries.triggerDoor(libraries.doorr1, "doorr1", "PAX right-front");
</script>
</binding>
</action>
@ -146,7 +146,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl3, "doorl3", "PAX left");
libraries.triggerDoor(libraries.doorl3, "doorl3", "PAX left");
</script>
</binding>
</action>
@ -194,7 +194,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr3, "doorr3", "PAX right");
libraries.triggerDoor(libraries.doorr3, "doorr3", "PAX right");
</script>
</binding>
</action>
@ -244,7 +244,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.cargofwd, "cargofwd", "forward cargo");
libraries.triggerDoor(libraries.cargofwd, "cargofwd", "forward cargo");
</script>
</binding>
</action>
@ -279,7 +279,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.cargoaft, "cargoaft", "aft cargo");
libraries.triggerDoor(libraries.cargoaft, "cargoaft", "aft cargo");
</script>
</binding>
</action>

View file

@ -50,7 +50,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl1, "doorl1", "PAX left-front (main)");
libraries.triggerDoor(libraries.doorl1, "doorl1", "PAX left-front (main)");
</script>
</binding>
</action>
@ -98,7 +98,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr1, "doorr1", "PAX right-front");
libraries.triggerDoor(libraries.doorr1, "doorr1", "PAX right-front");
</script>
</binding>
</action>
@ -146,7 +146,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl4, "doorl4", "PAX left-back");
libraries.triggerDoor(libraries.doorl4, "doorl4", "PAX left-back");
</script>
</binding>
</action>
@ -194,7 +194,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr4, "doorr4", "PAX right-back");
libraries.triggerDoor(libraries.doorr4, "doorr4", "PAX right-back");
</script>
</binding>
</action>

View file

@ -50,7 +50,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl1, "doorl1", "PAX left-front (main)");
libraries.triggerDoor(libraries.doorl1, "doorl1", "PAX left-front (main)");
</script>
</binding>
</action>
@ -98,7 +98,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr1, "doorr1", "PAX right-front");
libraries.triggerDoor(libraries.doorr1, "doorr1", "PAX right-front");
</script>
</binding>
</action>
@ -146,7 +146,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl4, "doorl4", "PAX left-back");
libraries.triggerDoor(libraries.doorl4, "doorl4", "PAX left-back");
</script>
</binding>
</action>
@ -194,7 +194,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr4, "doorr4", "PAX right-back");
libraries.triggerDoor(libraries.doorr4, "doorr4", "PAX right-back");
</script>
</binding>
</action>

View file

@ -50,7 +50,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl1, "doorl1", "PAX left-front (main)");
libraries.triggerDoor(libraries.doorl1, "doorl1", "PAX left-front (main)");
</script>
</binding>
</action>
@ -98,7 +98,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr1, "doorr1", "PAX right-front");
libraries.triggerDoor(libraries.doorr1, "doorr1", "PAX right-front");
</script>
</binding>
</action>
@ -146,7 +146,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl4, "doorl4", "PAX left-back");
libraries.triggerDoor(libraries.doorl4, "doorl4", "PAX left-back");
</script>
</binding>
</action>
@ -194,7 +194,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr4, "doorr4", "PAX right-back");
libraries.triggerDoor(libraries.doorr4, "doorr4", "PAX right-back");
</script>
</binding>
</action>

View file

@ -50,7 +50,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl1, "doorl1", "PAX left-front (main)");
libraries.triggerDoor(libraries.doorl1, "doorl1", "PAX left-front (main)");
</script>
</binding>
</action>
@ -98,7 +98,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr1, "doorr1", "PAX right-front");
libraries.triggerDoor(libraries.doorr1, "doorr1", "PAX right-front");
</script>
</binding>
</action>
@ -146,7 +146,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl2, "doorl2", "PAX left (main)");
libraries.triggerDoor(libraries.doorl2, "doorl2", "PAX left (main)");
</script>
</binding>
</action>
@ -194,7 +194,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr2, "doorr2", "PAX right");
libraries.triggerDoor(libraries.doorr2, "doorr2", "PAX right");
</script>
</binding>
</action>
@ -242,7 +242,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl3, "doorl3", "PAX left");
libraries.triggerDoor(libraries.doorl3, "doorl3", "PAX left");
</script>
</binding>
</action>
@ -290,7 +290,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr3, "doorr3", "PAX right");
libraries.triggerDoor(libraries.doorr3, "doorr3", "PAX right");
</script>
</binding>
</action>
@ -338,7 +338,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl4, "doorl4", "PAX left-back");
libraries.triggerDoor(libraries.doorl4, "doorl4", "PAX left-back");
</script>
</binding>
</action>
@ -386,7 +386,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr4, "doorr4", "PAX right-back");
libraries.triggerDoor(libraries.doorr4, "doorr4", "PAX right-back");
</script>
</binding>
</action>
@ -436,7 +436,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.cargofwd, "cargofwd", "forward cargo");
libraries.triggerDoor(libraries.cargofwd, "cargofwd", "forward cargo");
</script>
</binding>
</action>
@ -471,7 +471,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.cargoaft, "cargoaft", "aft cargo");
libraries.triggerDoor(libraries.cargoaft, "cargoaft", "aft cargo");
</script>
</binding>
</action>
@ -504,7 +504,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.cargobulk, "cargobulk", "bulk cargo");
libraries.triggerDoor(libraries.cargobulk, "cargobulk", "bulk cargo");
</script>
</binding>
</action>

View file

@ -50,7 +50,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl1, "doorl1", "PAX left-front (main)");
libraries.triggerDoor(libraries.doorl1, "doorl1", "PAX left-front (main)");
</script>
</binding>
</action>
@ -98,7 +98,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr1, "doorr1", "PAX right-front");
libraries.triggerDoor(libraries.doorr1, "doorr1", "PAX right-front");
</script>
</binding>
</action>
@ -146,7 +146,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl2, "doorl2", "PAX left (main)");
libraries.triggerDoor(libraries.doorl2, "doorl2", "PAX left (main)");
</script>
</binding>
</action>
@ -194,7 +194,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr2, "doorr2", "PAX right");
libraries.triggerDoor(libraries.doorr2, "doorr2", "PAX right");
</script>
</binding>
</action>
@ -242,7 +242,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl3, "doorl3", "PAX left");
libraries.triggerDoor(libraries.doorl3, "doorl3", "PAX left");
</script>
</binding>
</action>
@ -290,7 +290,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr3, "doorr3", "PAX right");
libraries.triggerDoor(libraries.doorr3, "doorr3", "PAX right");
</script>
</binding>
</action>
@ -338,7 +338,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorl4, "doorl4", "PAX left-back");
libraries.triggerDoor(libraries.doorl4, "doorl4", "PAX left-back");
</script>
</binding>
</action>
@ -386,7 +386,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.doorr4, "doorr4", "PAX right-back");
libraries.triggerDoor(libraries.doorr4, "doorr4", "PAX right-back");
</script>
</binding>
</action>
@ -436,7 +436,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.cargofwd, "cargofwd", "forward cargo");
libraries.triggerDoor(libraries.cargofwd, "cargofwd", "forward cargo");
</script>
</binding>
</action>
@ -471,7 +471,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.cargoaft, "cargoaft", "aft cargo");
libraries.triggerDoor(libraries.cargoaft, "cargoaft", "aft cargo");
</script>
</binding>
</action>
@ -504,7 +504,7 @@
<binding>
<command>nasal</command>
<script>
libraries.triggerDoor(systems.cargobulk, "cargobulk", "bulk cargo");
libraries.triggerDoor(libraries.cargobulk, "cargobulk", "bulk cargo");
</script>
</binding>
</action>

View file

@ -164,23 +164,23 @@ setlistener("/controls/switches/no-smoking-sign", func {
#########
# Front doors
var doorl1 = aircraft.door.new("/sim/model/door-positions/doorl1", 2);
var doorr1 = aircraft.door.new("/sim/model/door-positions/doorr1", 2);
var doorl1 = aircraft.door.new("/sim/model/door-positions/doorl1", 4);
var doorr1 = aircraft.door.new("/sim/model/door-positions/doorr1", 4);
# Middle doors (A321 only)
var doorl2 = aircraft.door.new("/sim/model/door-positions/doorl2", 2);
var doorr2 = aircraft.door.new("/sim/model/door-positions/doorr2", 2);
var doorl3 = aircraft.door.new("/sim/model/door-positions/doorl3", 2);
var doorr3 = aircraft.door.new("/sim/model/door-positions/doorr3", 2);
var doorl2 = aircraft.door.new("/sim/model/door-positions/doorl2", 4);
var doorr2 = aircraft.door.new("/sim/model/door-positions/doorr2", 4);
var doorl3 = aircraft.door.new("/sim/model/door-positions/doorl3", 4);
var doorr3 = aircraft.door.new("/sim/model/door-positions/doorr3", 4);
# Rear doors
var doorl4 = aircraft.door.new("/sim/model/door-positions/doorl4", 2);
var doorr4 = aircraft.door.new("/sim/model/door-positions/doorr4", 2);
var doorl4 = aircraft.door.new("/sim/model/door-positions/doorl4", 4);
var doorr4 = aircraft.door.new("/sim/model/door-positions/doorr4", 4);
# Cargo holds
var cargobulk = aircraft.door.new("/sim/model/door-positions/cargobulk", 2.5);
var cargoaft = aircraft.door.new("/sim/model/door-positions/cargoaft", 2.5);
var cargofwd = aircraft.door.new("/sim/model/door-positions/cargofwd", 2.5);
var cargobulk = aircraft.door.new("/sim/model/door-positions/cargobulk", 3);
var cargoaft = aircraft.door.new("/sim/model/door-positions/cargoaft", 10);
var cargofwd = aircraft.door.new("/sim/model/door-positions/cargofwd", 10);
# Seat armrests in the flight deck (unused)
var armrests = aircraft.door.new("/sim/model/door-positions/armrests", 2);