Home   Help Search Login Register  

Author Topic: SOLVED: What time is it? (in the game that is)  (Read 1295 times)

0 Members and 1 Guest are viewing this topic.

Offline LeeHunt

  • Former Staff
  • ****
  • John 21:25
SOLVED: What time is it? (in the game that is)
« on: 05 Aug 2007, 01:03:18 »
couldn't find the answer to this searching ofpec or on the Bohemia wikipedia...

How do I find out what time it is during the mission from the editing point of view?

I'd like to, if possible, have a finale cutscene where the time is the sunset at like 6:30 pm.  But the player could finish the mission in the middle of the night. Does anyone know how i can get a number for the actual time and then use with skiptime?

thanks so much!

ps looking forward to the Beta test marathon!
« Last Edit: 06 Aug 2007, 17:11:53 by Lee »

Offline myke13021

  • Contributing Member
  • **
  • Myke
Re: What time is it? (in the game that is)
« Reply #1 on: 05 Aug 2007, 01:14:19 »
The command daytime could be what you're looking for, mate.  :D

Offline firecontrol

  • Members
  • *
Re: What time is it? (in the game that is)
« Reply #2 on: 05 Aug 2007, 07:23:54 »
Code: [Select]
skipTime ((2.8800 - daytime) + 24) % 24;

Works by taking the time you want, subtract the current time... add 24 hours to account for a negative number, and apply a mod 24. (The remainder of the number divided by 24.) Will give the positive difference in hours needed to "skip" to get to the target time.

This will set the time of day to whatever you want. 2.88 is about 2:53AM... change as needed. :)
for 6:30PM use 18.50, so on and so forth.
« Last Edit: 05 Aug 2007, 07:48:01 by firecontrol »

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re: What time is it? (in the game that is)
« Reply #3 on: 05 Aug 2007, 07:38:05 »
ps looking forward to the Beta test marathon!

Glad to hear it mate! We look forward to seeing your posts!
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline LeeHunt

  • Former Staff
  • ****
  • John 21:25
SOLVED: What time is it? (in the game that is)
« Reply #4 on: 05 Aug 2007, 16:10:49 »
great! thanks gentlemen that worked perfectly!