use controls.startEngine(0) for starter release (easier to override)
This commit is contained in:
parent
94be938a0a
commit
d6e96199eb
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue