Community Forum

How to check the current time in the game?

Forum Overview >> Scripting

CategoryScripting
Created31.12.2021 03:18


Loganout (Loganout) 31.12.2021 03:18
Hey, guys.
Could someone tell me how I get the current time in FS22?
For example, I would like to make something happen when it's 12:00.

Jos Notjos (Eissoj) 01.01.2022 09:43
You can get the current game time from reading g_currentMission.environment.dayTime
It will return the time of the day in milliseconds

Loganout (Loganout) 01.01.2022 18:42
Jos Bode Thanks a lot for the help!


Note: Log in to post. Create a new account here.