KismetGameStateMatinee

Tracking Issue: #837

Tags: events

Allow mods to insert their logic next to matinees triggered by mission kismet, by using ELD_OnVisualizationBlockStarted/ELD_OnVisualizationBlockCompleted or PreBuildVisualizationFn/PostBuildVisualizationFn.

The triggering SeqAct_PlayGameStateMatinee can be fetched using the following code:

XComGameStateContext_Kismet(GameState.GetContext()).FindSequenceOp()

The SeqAct isn't passed as the event source as there is no definitive answer (at the time of implementation of this event) to whether passing kismet objects in events is safe in terms of the replay functionality or not.

KismetGameStateMatinee event

Param Value
EventID KismetGameStateMatinee
EventData none
EventSource none
NewGameState yes

Listener template

static function EventListenerReturn OnKismetGameStateMatinee(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
    // Your code here

    return ELR_NoInterrupt;
}

Source code references