HeadquartersUnitFired

Tracking Issue: #871

Tags: events

This event is triggered when an XComGameStateContext_HeadquartersOrder of eHeadquartersOrderType_FireStaff type is submitted. The unit state in question is already removed (RemoveStateObject) when the event is triggered.

Usually this happens when the player presses "DISMISS" in the armory menu.

HeadquartersUnitFired event

Param Value
EventID HeadquartersUnitFired
EventData none
EventSource XComGameState_Unit
NewGameState yes

Listener template

static function EventListenerReturn OnHeadquartersUnitFired(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
    local XComGameState_Unit FiredUnit;

    FiredUnit = XComGameState_Unit(EventSource);

    // Your code here

    return ELR_NoInterrupt;
}

Source code references