DayToNight(object, float)

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

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

Parameters

oPlayer

Player to dump into darkness

fTransitionTime

Time it takes to become night (Default: 0.0f)


Description

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



Remarks

If called while it is night, the player might see the screen go light for a short while and then fade back out. 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: GetIsDay | GetIsNight | NightToDay
categories: Action on Object Functions | Lighting Effects Functions | PC Only Functions


 author: Lilac Soul