NightToDay(object, float)

Changes the current Day/Night cycle for this player to daylight

void NightToDay(
    object oPlayer,
    float fTransitionTime = 0.0f
);

Parameters

oPlayer

Player to see the light of day

fTransitionTime

Time it takes for the daylight to fade in (Default: 0.0f)


Description

Changes the current Day/Night cycle for this player to daylight.



Remarks

If called while it is day, the player might see the screen go dark for a short while and then fade back in. This doesn't look so good, so it may be a good idea to use this together with the GetIsDay / GetIsNight functions.

This doesn't cause the game time to change at all.


Version

1.61

See Also

functions: DayToNight | GetIsDay | GetIsNight
categories: Action on Object Functions | Lighting Effects Functions | PC Only Functions


 author: Lilac Soul