• 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.

FSX Mission Editor "IF" command

Messages
194
Country
unitedstates
Anyone had any luck using the "IF" command? I'm trying to monitor the fuel level in a mission, and it just doesn't seem to work correctly. Here's what I have:

SimVar IF "$FUEL TOTAL QUANTITY" IN percent >= 50.000 THEN {Dialog Guid} ELSE {Second Dialog Guid}

It only returns the first dialog, regardless of the fuel level.
 
you need to split the command as thus
FUELLEAK Command
Although there is a fuel-leak command provided by FSX, this one is
provided as an alternative to that. The difference is that you specify how much
fuel you want remaining after a fixed period of time, instead of specifying the
leak rate. This allows you to more accurately script your out-of-fuel locations.
FUELLEAK <percent_remaining> AFTER <seconds>
Setting <percent_remaining> to anything less than 0 will stop a current
leak, as will the “STOP” command.
Examples:
FUELLEAK 3 AFTER 600
Exactly ten minutes (600 seconds) from now, you will have 3% fuel
remaining.
FUELLEAK -1 AFTER 100
Stop leaking now. The time value is ignored if percent_remaining is < 0.
FUELLEAK STOP
Also means stop leaking now.
PROFILE LkTime SET 90
IF $Level = 1 THEN {GUID} --> PROFILE LkTime SET 60
IF $Level = 2 THEN {GUID} --> PROFILE LkTime SET 45
FUELLEAK 0 AFTER $LkTime
Assuming “Level” has been set by a previous menu choice to 0, 1 or 2, set
LkTime to one of 90, 60 or 45. Then, later, run out of fuel after a number of
seconds that corresponds to the difficulty level the user chose. This example
would need to be split over six separate CustomAction nodes.
 
Back
Top