PostUFOSetInterceptionTime
Tracking Issue: #1316
Tags: events
This event allows mods to modify the state of a UFO
after it has been created but before the gamestate is submitted.
To use this event, listen to it with the ELD_Immediate
deferral,
and make sure to get the latest version of the UFO state object from the NewGameState, for example:
local XComGameState_UFO UFOState;
UFOState = XComGameState_UFO(EventSource);
UFOState = XComGameState_UFO(NewGameState.GetGameStateForObjectID(UFOState.ObjectID));
PostUFOSetInterceptionTime event
Param | Value |
---|---|
EventID | PostUFOSetInterceptionTime |
EventData | XComGameState_UFO |
EventSource | XComGameState_UFO |
NewGameState | yes |
Listener template
static function EventListenerReturn OnPostUFOSetInterceptionTime(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
// Your code here
return ELR_NoInterrupt;
}