PsiProjectCompleted
Tracking Issue: #534
Tags: events
Triggers a PsiProjectCompleted
event to inform mods that a
Psi Operative has finished training in the Psi Lab.
PsiProjectCompleted event
Param | Value |
---|---|
EventID | PsiProjectCompleted |
EventData | XComLWTuple |
EventSource | XComGameState_HeadquartersProjectPsiTraining |
NewGameState | none |
Tuple contents
Index | Name | Type | Direction |
---|---|---|---|
0 | Unit | XComGameState_Unit | in |
1 | AbilityName | string | in |
Listener template
static function EventListenerReturn OnPsiProjectCompleted(Object EventData, Object EventSource, XComGameState GameState, Name EventID, Object CallbackObject)
{
local XComGameState_HeadquartersProjectPsiTraining PsiTrainingProject;
local XComLWTuple Tuple;
local XComGameState_Unit Unit;
local string AbilityName;
PsiTrainingProject = XComGameState_HeadquartersProjectPsiTraining(EventSource);
Tuple = XComLWTuple(EventData);
Unit = XComGameState_Unit(Tuple.Data[0].o);
AbilityName = Tuple.Data[1].s;
// Your code here
return ELR_NoInterrupt;
}