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

Need hel about property trigger

Messages
87
Country
spain
Hi boys:

I need to do the same as in the Mission "Relax in Catalina".I need a property trigger that looks for de fuel pump status. If activated, engine runs, and if is not activated, i need that engine stop. ( Excuse my english, I'm spanish).

Hola amigos:

Necesito un trigger que compruebe si la bomba esta activada,como en la mision relax en Catalina. Lo que busco es que el jugador necesite activar la bomba para que el motor siga en marcha. ¿ Alguna idea?
 
Last edited:
As this is exactly what the Catalina mission does, why not use that mission and build your own mission using the triggers and actions of the sample mission? ;)
 
I can't find in the conditional editor a simvar like "FuelPumpSwitch"="True".I have also tried to manually edit it in the .xml file, but it doesn't works.
Well, i will continue working.
I 've look in several sample missions but i can't find nothing.I think that if i could "read" the .xml of the "relax" mission, i could find my way, but i don't know where I can find the .xml file of "relax catalina" mission.
( Sorry again for my english)
Would you tell me where I can find it ?
 
You can find the source XMLs for all default missions in the SDK folders (normally fsx/SDK/Mission Development/...).

You will find that the Catalina mission trigger a fuelpump failure:
Code:
        <SimMission.FailureAction InstanceId="{E988CF15-D749-492D-B9E2-9403A7A52A98}">
            <Descr>FuelPumpFailure</Descr>
            <System>FuelPump</System>
            <SystemIndex>1</SystemIndex>
        </SimMission.FailureAction>

Then it simply looks if the engine goes off:
Code:
        <SimMission.PropertyTrigger InstanceId="{FA837CA4-5136-4037-B68A-F5076CCF1F18}">
            <Descr>EngineOffTrigger</Descr>
            <Activated>False</Activated>
            <Actions>
                <ObjectReference id="TurnOnEngineRestart" InstanceId="{CD4B7B33-C764-49BC-803A-C9EF7EF91B9E}">
                </ObjectReference>
                <ObjectReference id="TurnOnCarrierGoal" InstanceId="{F9894FEE-5405-4B7C-960C-001F369D31DA}">
                </ObjectReference>
            </Actions>
            <Condition>
                <And>
                    <Equal>
                        <LHS>
                            <Property>
                                <Name>Simvar.EngineCombustion</Name>
                                <Index>1</Index>
                                <PropertySource>User</PropertySource>
                            </Property>
                        </LHS>
                        <RHS>
                            <Constant>
                                <Bool>False</Bool>
                            </Constant>
                        </RHS>
                    </Equal>
                </And>
            </Condition>
        </SimMission.PropertyTrigger>
and waits if it is turned on again:
Code:
        <SimMission.PropertyTrigger InstanceId="{EC277D4A-6106-4526-A3A6-C3BA596367AC}">
            <Descr>EngineRestartTrigger</Descr>
            <Activated>False</Activated>
            <Actions>
                <ObjectReference id="TurnOnMonicaGoal" InstanceId="{64F085E1-A541-4B9A-8464-DCDE701B9B4C}">
                </ObjectReference>
                <ObjectReference id="TurnOffReportFailTimer" InstanceId="{B9262D66-55BD-4415-9063-3F4BE404BACB}">
                </ObjectReference>
                <ObjectReference id="TurnOnReportRestartTimer" InstanceId="{F8417033-9903-4163-AA10-C115283288C5}">
                </ObjectReference>
                <ObjectReference id="TurnOffFailCarrier" InstanceId="{2DE6DC3B-415D-46F3-90A3-8B5DFBF5BDEC}">
                </ObjectReference>
            </Actions>
            <Condition>
                <And>
                    <Equal>
                        <LHS>
                            <Property>
                                <Name>Simvar.EngineCombustion</Name>
                                <Index>1</Index>
                                <PropertySource>User</PropertySource>
                            </Property>
                        </LHS>
                        <RHS>
                            <Constant>
                                <Bool>True</Bool>
                            </Constant>
                        </RHS>
                    </Equal>
                </And>
            </Condition>
        </SimMission.PropertyTrigger>

Keep in mind that the failed fuel pump is not the aux fuel pump, which can be switched on with the fuel pump switch. ;)
 
We all have our questions, and there's always someone out there who may know the answer, so asking is what makes us human. ;)
 
Back
Top