Jump to content

Time of day more or less than condition


TheTrooper

Recommended Posts

How about a condition if thew time of day was between certain times do something else do something else?

I just thought of this as I built a scenario in mission editor. Basically, on Mission start if it's daytime then play a music file. If, it's night then play something else a little bit different for the atmospherics.

Result: With this condition if the ‘Time’ in mission editor was changed something else would happen.

-----------------------------------------------

Intel® Core™i7 Quad Core Processor i7-6700 (3.4GHz) 8MB Cache | 32GB HyperX FURY DDR4 2133MHz | MSI GeForce RTX 2070 ARMOR 8G |SSD 1TB 970 EVO Plus M.2

Link to comment
Share on other sites

I think timer.getAbsTime will already return the time of day in seconds, 0 being midnight. You can use a doscript to return timer.getAbsTime() > n as the trigger.

Creator & Developer of XSAF ::An AI model that wants to kill you, and needs no help from humans.

Discord: PravusJSB#9484   twitch.tv/pravusjsb  https://www.patreon.com/XSAF  https://discord.gg/pC9EBe8vWU https://bmc.link/johnsbeaslu

Work with me on Fiverr: https://www.fiverr.com/pravusjsb

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...