1
0
KF2-Dev-Scripts/KFGameContent/Classes/KFSeqAct_MinigameActivateGenerator.uc
2020-12-13 18:01:13 +03:00

42 lines
1.3 KiB
Ucode

//=============================================================================
// KFSeqAct_MinigameActivateGenerator
//=============================================================================
// Action for starting the minigame generator via Kismet, rather than through
// user interaction.
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
// - Dan Weiss
//=============================================================================
class KFSeqAct_MinigameActivateGenerator extends SequenceAction;
var() KFTrigger_MinigameGenerator Generator;
event Activated()
{
if (Generator != none)
{
if (InputLinks[0].bHasImpulse)
{
Generator.UsedBy(none);
}
else if (InputLinks[1].bHasImpulse)
{
Generator.DeactivateMinigames();
}
}
}
defaultproperties
{
ObjName = "Activate Generator"
ObjCategory = "Killing Floor"
InputLinks.Empty()
InputLinks(0) = (LinkDesc = "Activate")
InputLinks(1) = (LinkDesc = "Deactivate")
VariableLinks.Empty()
VariableLinks(0) = (ExpectedType=class'SeqVar_Object', LinkDesc="Generator", PropertyName=Generator)
}