1
0
KF2-Dev-Scripts/KFGameContent/Classes/KFSeqEvent_MinigameGeneratorStateChanged.uc

49 lines
1.3 KiB
Ucode
Raw Permalink Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFSeqEvent_MinigameGeneratorStateChanged
//=============================================================================
// Called when a minigame generator turns on or off.
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
// - Dan Weiss
//=============================================================================
class KFSeqEvent_MinigameGeneratorStateChanged extends SequenceEvent;
function StateChanged(Actor InInstigator, Actor InTrigger, bool bIsActive, bool bReactivated)
{
local array<int> ActiveIndices;
if (bIsActive)
{
if (bReactivated)
{
ActiveIndices[0] = 2;
}
else
{
ActiveIndices[0] = 0;
}
}
else
{
ActiveIndices[0] = 1;
}
CheckActivate(InInstigator, InTrigger, false, ActiveIndices);
}
defaultproperties
{
ObjName = "Minigame Generator State Changed"
OutputLinks.Empty
OutputLinks(0)=(LinkDesc="Active")
OutputLinks(1)=(LinkDesc="Inactive")
OutputLinks(2)=(LinkDesc="Reactivate")
VariableLinks.Empty
bPlayerOnly = false
MaxTriggerCount = 0
}