OnDistributeTacticalGameEndXp
Tracking Issue: #562
Tags: events
Allows mods to add their own mission XP distribution mechanics at the end of a mission. This hook is mainly to aid mods in providing other sources of XP than just kills. Mission XP (XP that's gained by just going on a mission) is a good example.
OnDistributeTacticalGameEndXp event
| Param | Value |
|---|---|
| EventID | OnDistributeTacticalGameEndXp |
| EventData | XComGameState_HeadquartersXCom |
| EventSource | XComGameState_XpManager |
| NewGameState | yes |
Listener template
static function EventListenerReturn OnOnDistributeTacticalGameEndXp(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
local XComGameState_XpManager XpMgr;
XpMgr = XComGameState_XpManager(EventSource);
// Your code here
return ELR_NoInterrupt;
}