# Game Day/Night State Change
Grammar — Game Day/Night state changed to type
Flags —Native
|Event
# Arguments
int
<preset::DayNightEventType> — Type
Returns — void
native void TriggerAddEventGameTimeEvent(int type);
# Event parameters
- Triggering Day/Night State — EventGameTimeEvent
# Related
Category: Environment / Lighting
- Game Day/Night State Change —
void
— TriggerAddEventGameTimeEvent - Set Lighting —
void
— GameSetLighting - Set Lighting For Player —
void
— PlayerSetLighting - Set Time Of Day —
void
— GameTimeOfDaySet - Set Time Of Day (Seconds) —
void
— GameTimeOfDayValueSet - Set Time Of Day (Hours, Minutes, Seconds) —
void
— GameTimeOfDayTimeValueSet - Set Time of Day Lighting —
void
— GameSetToDLighting - Set Time of Day Lighting For Player —
void
— PlayerSetToDLighting - Set Day Length —
void
— GameTimeOfDaySetLength - Pause/Unpause Time Of Day —
void
— GameTimeOfDayPause - Triggering Day/Night State —
int
<preset::DayNightEventType> — EventGameTimeEvent - Current Time Of Day —
string
<timeofday> — GameTimeOfDayGet - Current Time Of Day (Seconds) —
int
— GameTimeOfDayValueGet - Current Day/Night State —
int
<preset::DayNightEventType> — GameTimeOfDayCurrentTimeEvent - Day Length —
fixed
— GameTimeOfDayGetLength - Time Of Day Is Paused —
bool
— GameTimeOfDayIsPaused
# Examples
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/WarClassicSystem.galaxy:950
void libGAwX_gt_CreepPlayerDawnDuskSwitch_Init () {
libGAwX_gt_CreepPlayerDawnDuskSwitch = TriggerCreate("libGAwX_gt_CreepPlayerDawnDuskSwitch_Func");
TriggerAddEventGameTimeEvent(libGAwX_gt_CreepPlayerDawnDuskSwitch, -1);
}
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/WarClassicSystem.galaxy:1108
void libGAwX_gt_DayWarning_Init () {
libGAwX_gt_DayWarning = TriggerCreate("libGAwX_gt_DayWarning_Func");
TriggerAddEventGameTimeEvent(libGAwX_gt_DayWarning, c_gameTimeEventDawn);
}
mods/warcoop/warclassicsystem.sc2mod — base.sc2data/TriggerLibs/WarClassicSystem.galaxy:1147
void libGAwX_gt_NightWarning_Init () {
libGAwX_gt_NightWarning = TriggerCreate("libGAwX_gt_NightWarning_Func");
TriggerAddEventGameTimeEvent(libGAwX_gt_NightWarning, c_gameTimeEventDusk);
}