Jump to content

Scripted Time of Day


Xengeance

Recommended Posts

I was curious if it is possible to script a fixed time into the game, i.e: it's nth o'clock indefinitely, and then resume the normal passage of time from a point before time was frozen. That said, it would only be a cosmetic change, since I don't want to actually freeze time, just make it the same time of day for a short amount of time.

 

My methodology would go something like this:

 

Get the current game world time and store it in a variable.

 

Set the current time to be whatever I chose the fixed time to be set at

 

Time of day is essentially fixed in place until whatever conditions that are in place are fulfilled.

 

Time is restored to it's original value and resumes normally.

Link to comment
Share on other sites

there should be a "timescale" setting. (controls how many game minutes is a normal minute). set it to 0 and that should do it.

 

What about setting the actual time? My goal is to have a scripted event that occurs at sunset in a separate worldspace, regardless of what the 'actual' time is in-game. What about the Climate settings? Is it possible to just have a climate designed to have a perpetual sunset?

Link to comment
Share on other sites

As mentioned by TGBlank, you can change the "Timescale" Global to prevent the regular passage of time. The "GameHour" Global can be used to check and change the time of day, although you might want to update the "GameDaysPassed" Global as well if you change "GameHour" via script.

 

For more information on Globals used for in-game time, see this page - Global variables for In-Game Time

 

Cipscis

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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