PreDarkEventDeactivated

Tracking Issue: #753

Tags: events

Notifies listeners of when a dark event has expired/been deactivated. This event fires before the dark event's deactivation code runs, so register an ELD_Immediate listener if you want access to the state before that happens, or an ELD_OnStateSubmitted listener if you want the state after the full deactivation.

PreDarkEventDeactivated event

Param Value
EventID PreDarkEventDeactivated
EventData XComGameState_DarkEvent
EventSource XComGameState_DarkEvent
NewGameState yes

Listener template

static function EventListenerReturn OnPreDarkEventDeactivated(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
    local XComGameState_DarkEvent EventState;

    EventState = XComGameState_DarkEvent(EventData);

    // Your code here

    return ELR_NoInterrupt;
}

Source code references