|
|
Line 46: |
Line 46: |
| ----------------------------------------------------------------------------- | | ----------------------------------------------------------------------------- |
| To make condition work with mixture on a non-repeatable button. | | To make condition work with mixture on a non-repeatable button. |
|
| | |
| Make mixture richer NR
| |
| <syntaxhighlight lang="xml">
| |
| <![CDATA[
| |
| if(getprop("controls/engines/engine/mixture") < 1 ) {
| |
| setprop("controls/engines/engine/mixture", getprop ("controls/engines/engine/mixture") + 0.05);
| |
| props.setAll("controls/engines/engine", "condition", getprop("controls/engines/engine/mixture"))
| |
| }
| |
| ]]>
| |
| </syntaxhighlight>
| |
|
| |
| Make mixture leaner NR
| |
| <![CDATA[
| |
| if(getprop("controls/engines/engine/mixture") > 0 ) {
| |
| setprop("controls/engines/engine/mixture", getprop("controls/engines/engine/mixture") - 0.05)
| |
| props.setAll("controls/engines/engine", "condition", getprop("controls/engines/engine/mixture"))
| |
| }
| |
| ]]>
| |
|
| |
|
| |
| Make mixture richer R
| |
| <![CDATA[
| |
| if(getprop("controls/engines/engine/mixture") < 1 ) {
| |
| setprop("controls/engines/engine/mixture", getprop ("controls/engines/engine/mixture") + 0.001);
| |
| props.setAll("controls/engines/engine", "condition", getprop("controls/engines/engine/mixture"))
| |
| }
| |
| ]]>
| |
|
| |
| Make mixture leaner R
| |
| <![CDATA[
| |
| if(getprop("controls/engines/engine/mixture") > 0 ) {
| |
| setprop("controls/engines/engine/mixture", getprop("controls/engines/engine/mixture") - 0.001)
| |
| props.setAll("controls/engines/engine", "condition", getprop("controls/engines/engine/mixture"))
| |
| }
| |
| ]]>
| |
| ----------------------------------------------------------------------------- | | ----------------------------------------------------------------------------- |
| ----------------------------------------------------------------------------- | | ----------------------------------------------------------------------------- |