Home   Help Search Login Register  

Author Topic: Changing daytime  (Read 691 times)

0 Members and 1 Guest are viewing this topic.

Skaven

  • Guest
Changing daytime
« on: 19 Nov 2002, 13:39:55 »
Is there anyway with the help of a trigger to change the time of the day in the game?

ex: I'm attacking a village at night, when all enemys are dead,
I want to make a small cutsene and when the cutsene is over I need the night time to turn to day time, is this possible to make?

Also is it possible to make kind of a fade out effect, I mean making the night turn to day but much faster, and when it reaches let's say 10 o'clock the game returns to normal time speed?

Gameer_77

  • Guest
Re:Changing daytime
« Reply #1 on: 19 Nov 2002, 13:45:06 »
I take it your familiar with skiptime?

Quote
skipTime duration
Operand types:
    duration: Number
Type of returned value:
    Nothing

Description:
    Skip time. Daytime is adjusted, weather change is estimated, no changes in any units are done. Duration is in hours.

Example:
    skipTime 2.5


If you want to do it slowly you could make a loop like BIS done in that escape from prison mission:

Code: [Select]
_i = 0

#loop
_i = _i + 1
skipTime 0.015
~0.1
? _i > 150 : goto "konec"
goto "loop"
#konec

Gameer

Skaven

  • Guest
Re:Changing daytime
« Reply #2 on: 19 Nov 2002, 13:47:36 »
That is exactely what I needed, thanks mate  ;)