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

Regarding timer triggers and property triggers

Horst18519

Moderator
Resource contributor
Messages
2,385
Country
germany
Another thing concerning triggers.

As Paul stated very nicely in the document about mission building, there are very nice things you can do with counter triggers. Did you know that you actually can add negative values to it? No, it won't go below 0, but you can add and subtract as much as you want.
Another thing seems to happen too: if the trigger fires it seems to be reset to "0". Has anyone experienced the same thing? Just want to be sure about it.


And one more discussion:

You can use a Property trigger to check to see if another trigger is “latched.” This is useful in cases where you want to give the user an award after they’ve completed one or multiple parts of a mission.
Was anyone yet able to setup a property trigger that checks the state of another trigger? I wasn't successful yet.
 
Last edited:
And one more problem:

I was trying to setup a property trigger for an AI aircraft. It should check if the aircraft is below 500f AGL.

There is of course this issue that if you select the AI instead of "user", click OK and go back to the properties, the selection is "user" again.
But if you don't go back and check the settings in the left window, the LHS is actually referenced to the AI.

But the trigger doesn't work. It simply happens nothing.

Did anyone play with that yet?

By the way: The SDK states that it should be able to use an AI instead of the user. But after checking the default samples I found that they never used this option. Maybe because it's not working? ...
 
Last edited:
Hi Folks

Was anyone yet able to setup a property trigger that checks the state of another trigger? I wasn't successful yet.

Thorsten -
I tried this earlier, and it works nicely.

Do you require code ?

HTH
ATB
Paul
 
That would be very kind, Paul. :)

Did you do it in the OPT or by hand?
 
Hi Folks

Thorsten -
My apologies,
I'd have included the code in my post, but it was late.

Since had a major unrelated problem,
so didn't get the code extracted & reworked till now.

This code was manually created,
as I didn't know how to generate it in the OPT.

A timer activates the first dialog.

A second timer activates the property trigger
which checks for the first timer's SimMission.Latched state.

If fired, a second dialog is activated.

Code:
        <SimMission.DialogAction InstanceId="{D3BDAB41-B690-499F-B63D-1ECDAB56C1AA}">
            <Descr>_Init_TTIMER_S5_DIALOG_AD_Start</Descr>
            <Text>
Start - 
Timer activated dialog
</Text>
            <SoundFileName>Windows XP Logon Sound.wav</SoundFileName>
        </SimMission.DialogAction>


        <SimMission.DialogAction InstanceId="{7808D1CE-FFDB-4727-A05E-093DB452DB0C}">
            <Descr>_Init_TTIMER_S5_State_Latched_Test_DIALOG_AD_TaDa</Descr>
            <Text>
TaDa - 
Result of Timer SimMission.Latched activated dialog
</Text>
            <SoundFileName>TaDa.wav</SoundFileName>
        </SimMission.DialogAction>



        <SimMission.ObjectActivationAction InstanceId="{35CE0E66-F666-4E9C-8CCD-929C54BCE3C7}">
            <Descr>Check_Trigger_Latched_TPROP_AA_On</Descr>
            <ObjectReferenceList>
                <ObjectReference id="_Init_TTIMER_S5_State_Latched_Test_DIALOG_AD_TaDa" InstanceId="{501830EF-64BE-455E-813E-849BE93FD9F0}">
                </ObjectReference>
            </ObjectReferenceList>
        </SimMission.ObjectActivationAction>



        <SimMission.PropertyTrigger InstanceId="{501830EF-64BE-455E-813E-849BE93FD9F0}">
            <Descr>Test_Trigger_State_Latched_TPROP</Descr>
            <Activated>False</Activated>
            <Condition>
                <And>
                    <Equal>
                        <LHS>
                            <Property>
                                <Name>SimMission.Latched</Name>
                                <ObjectReference id="Init_TTIMER_S5" InstanceId="{DBE3913D-7B7C-45FE-A62B-54588F875D76}">
                                </ObjectReference>
                            </Property>
                        </LHS>
                        <RHS>
                            <Constant>
                                <Bool>True</Bool>
                            </Constant>
                        </RHS>
                    </Equal>
                </And>
            </Condition>
            <Actions>
                <ObjectReference id="_Init_TTIMER_S5_DIALOG_AD_Start" InstanceId="{7808D1CE-FFDB-4727-A05E-093DB452DB0C}">
                </ObjectReference>
            </Actions>
        </SimMission.PropertyTrigger>


        <SimMission.TimerTrigger InstanceId="{0819441F-C161-4659-B615-8F20985DA660}">
            <Descr>Init_TTIMER_S10</Descr>
            <StopTime>10.000</StopTime>
            <Actions>
                <ObjectReference id="Test_Trigger_State_Latched_TPROP_AA_On" InstanceId="{35CE0E66-F666-4E9C-8CCD-929C54BCE3C7}">
                </ObjectReference>
            </Actions>
        </SimMission.TimerTrigger>


        <SimMission.TimerTrigger InstanceId="{DBE3913D-7B7C-45FE-A62B-54588F875D76}">
            <Descr>Init_TTIMER_S5</Descr>
            <StopTime>5.000</StopTime>
            <Actions>
                <ObjectReference id="_Init_TTIMER_S5_DIALOG_AD_Start" InstanceId="{D3BDAB41-B690-499F-B63D-1ECDAB56C1AA}">
                </ObjectReference>
            </Actions>
        </SimMission.TimerTrigger>

HTH
ATB
Paul
 
Last edited:
That is very cool! Thanks a lot for that, Paul! I'll be testing this as soon as possible - looks like you could do interesting things with that. :)
 
Back
Top