1
0
Fork 0

use controls.startEngine(0) for starter release (easier to override)

This commit is contained in:
mfranz 2009-03-14 20:56:06 +00:00
parent 94be938a0a
commit d6e96199eb
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,6 @@
var startEngine = func(v = 1) {
if (!v)
return props.setAll("/controls/engines/engine", "starter", 0);
foreach(var e; engines)
if(e.selected.getValue())
e.controls.getNode("starter").setBoolValue(v);

View file

@ -960,12 +960,12 @@ top down before the key bindings are parsed.
<desc>Fire Starter on Selected Engine(s)</desc>
<binding>
<command>nasal</command>
<script>controls.startEngine()</script>
<script>controls.startEngine(1)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>props.setAll("/controls/engines/engine", "starter", 0)</script>
<script>controls.startEngine(0)</script>
</binding>
</mod-up>
</key>