plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

SFSimsDev avatar image
SFSimsDev asked SFSimsDev edited

Is it possible to have a TimerTrigger based on UTC time (UTCTrigger?)?

Hi,

Is this possible or something that could be added in future (in which case I can change this to a suggestion)?

I thought that the Hawaiian Volcano eruption in FSX must have used something similar if you set the correct date. It seems like something that should be a fairly standard feature.

If there's a way to achieve the same affect using the existing tools please can you share it too?

Thanks,

SFSimsDev

devmode
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Flysimware avatar image
Flysimware answered

You can write your own logic using zulu time or local time variables and events. Zulu is UTC.


Variables for time. Here you can trigger something based on time. https://docs.flightsimulator.com/html/Programming_Tools/WASM/Gauge_API/Token_Vars/General_Simulation.htm#ZULU_YEAR


Events for time. So you can set time. https://docs.flightsimulator.com/html/Programming_Tools/Event_IDs/Miscellaneous_Events.htm?rhhlterm=zulu&rhsearch=zulu

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Mr_LiamT avatar image
Mr_LiamT answered SFSimsDev edited

In what way do you want to trigger it; simconnect, WASM, JavaScript, MissionScript?

For MissionScript, you can use a PropertyTrigger. As ReversePolish Condition, use something like (E:ZULU TIME) 43200 >. You can find a list of variables here: https://docs.flightsimulator.com/html/Additional_Information/Reverse_Polish_Notation.htm#EnvironmentVariables

1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

SFSimsDev avatar image SFSimsDev commented ·

Thanks for this @Flysimware and @Mr_LiamT - I missed the responses somehow. MissionScript is what I'm after. Thanks!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.