1
0
KF2-Dev-Scripts/KFGame/Classes/KFSeqEvent_MapObjectiveActivated.uc

38 lines
1.2 KiB
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFSeqEvent_MapObjectiveActivated
//=============================================================================
// Called when a map objective is activated or deactivated.
//=============================================================================
// Killing Floor 2
// Copyright (C) 2018 Tripwire Interactive LLC
//=============================================================================
class KFSeqEvent_MapObjectiveActivated extends SequenceEvent;
function NotifyActivation(Actor InInstigator, Actor InMapObjective)
{
local array<int> ActiveIndices;
ActiveIndices[0] = 0;
CheckActivate(InInstigator, InMapObjective, false, ActiveIndices);
}
function NotifyDeactivation(Actor InInstigator, Actor InMapObjective)
{
local array<int> ActiveIndices;
ActiveIndices[0] = 1;
CheckActivate(InInstigator, InMapObjective, false, ActiveIndices);
}
defaultproperties
{
ObjName="Map Objective Activated"
OutputLinks.Empty()
OutputLinks(0)=(LinkDesc="Activated")
OutputLinks(1)=(LinkDesc="Deactivated")
bPlayerOnly=false
MaxTriggerCount=0
}