# Game Day/Night State Change

Grammar — Game Day/Night state changed to type
FlagsNative | Event

# Arguments

Returns — void

native void TriggerAddEventGameTimeEvent(int type);

# Event parameters

Category: Environment / Lighting

# Examples

mods/warcoop/warclassicsystem.sc2modbase.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.sc2modbase.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.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:1147

void libGAwX_gt_NightWarning_Init () {
    libGAwX_gt_NightWarning = TriggerCreate("libGAwX_gt_NightWarning_Func");
    TriggerAddEventGameTimeEvent(libGAwX_gt_NightWarning, c_gameTimeEventDusk);
}