• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Gauge for specific engine

Messages
79
Country
ca-britishcolumbia
Where would I find the code or instructions in a gauge that tell it which engine it's for?
 
GENERAL ENG RPM:index
The index indicates what engine you want to read specific information from!

Eng 1
(A:GENERAL ENG RPM:1, Rpm) 0 >

ENG2
(A:GENERAL ENG RPM:2, Rpm) 0 >

0 > = This means anytime the rpm is above 0 you can trigger an action!

Eng 1 with custom action...

Code:
(A:GENERAL ENG RPM:1, Rpm) 0 > if { 1 (>L:DO SOMETHING,Bool) }

Use this link for your SDK variables and under engine section you can choose what action to read from.
http://msdn.microsoft.com/en-us/library/cc526981.aspx
 
Last edited:
That only tells it which engine it's for providing the engine is running.

The index only tells it what engine! The entire code is an "IF then DO" statement.:teacher:
The action could be a light that appears for eng 1 above 0 RPM.
(But this statement will never be needed for a panel, just an example)
 
Last edited:
Code:
(A:GENERAL ENG RPM:1, Rpm) 0 > if { 1 (>L:DO SOMETHING,Bool) }

That expression indicates if engne 1 is running; it does not indicate if the engine 1 exists, nor anything else about it.
 
I agree, but the only thing that will tell the simulator the engine exists is the engine section in the aircraft.cfg
So i was confused on your earlier post since Alky wanted to know how to read or code gauges for specific engine.
 
Last edited:
I thought Alky was wanting to know read, for example, an L: value that returns which engine the gauge is for.

Where would I find the code or instructions in a gauge that tell it which engine it's for?

I didn't think that's quite was the same as coding a gauge for a specific engine but may be I'm wrong.

A:NUMBER OF ENGINES returns the number of existing engines, from 0 (no engine) to 4 (the maximum).
 
Which isn't what they asked for at all.

They want to know how, when looking at gauge code, which engine the code is written for. Simple as that.
 
Then it's a trivial question and no need for additional XML expressions - just look at the :indices.
 
It also doesn't require you to argue about it, yet... here you are. Try to behave.
 
Back
Top