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

Compare timers with property trigger

Horst18519

Moderator
Resource contributor
Messages
2,385
Country
germany
It's been quite some time since I asked something here :D - but now I might need some assistance.

I have 2 timers and want tp use a property trigger to know when one timer is equal or higher than the other.
What I tried:

Code:
        <SimMission.PropertyTrigger InstanceId="{FBDC3367-2A65-4AEC-8431-C64D337189C3}">
            <Descr>PropTrigger_AddMoney</Descr>
            <Activated>False</Activated>
            <Condition>
                <And>
                    <GreaterThan>
                        <LHS>
                            <Property>
                                <Units>number</Units>
                                <ObjectReference id="Money_Counter" InstanceId="{C67A2652-086C-4222-995C-14D0BAAAD053}">
                                </ObjectReference>
                            </Property>
                        </LHS>
                        <RHS>
                            <Property>
                                <Units>number</Units>
                                <ObjectReference id="Money_Counter_Test" InstanceId="{C99255D3-5D80-4B54-941F-ABC9B8A03E8E}">
                                </ObjectReference>
                            </Property>
                        </RHS>
                    </GreaterThan>
                </And>
            </Condition>
            <Actions>
                <ObjectReference id="Money_Plus_100" InstanceId="{90FD9F4E-E619-41E4-A80E-ECDC3DD53B07}">
                </ObjectReference>
                <ObjectReference id="MoneyCounter_Test_add_100" InstanceId="{51D9961A-144E-458E-9D47-B9A8DEE3B145}">
                </ObjectReference>
            </Actions>
        </SimMission.PropertyTrigger>

That unfortunately gives me a failing mission. Any ideas how I need to set up the trigger?

Don't be distracted by the term "money counter", both are in fact timers, not counters.
 
Current Timer values

Hi Thorsten,

It seems like you would want to compare the values contained in the Timers. I don't know how to do this.

I'm new to mission building and my posts or replies often expose my ignorance. This gives others the chance to set me straight. That's what I need.

I've probably benefited more from your posts and replies than from any others.

Thanks and sorry I can't be of more help.

Jim
 
Thorsten,

Any luck on figuring this out? I didn't even know you could do this. I did try to make it work, but it is above me.

Gunner
 
Well, it looks like it is not possible. Only thing you can check is if the trigger is latched. I used a rather complicated workaround, but it's working now. :)
 
Well, it looks like it is not possible. Only thing you can check is if the trigger is latched. I used a rather complicated workaround, but it's working now. :)

I think it is not possible without using simconnect. The tools provided in the mission editor cannot read a trigger status except for the latched condition.
 
Thanks, actually we found a working solution, so I didn't bother about it anymore. :D
 
Back
Top