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

37 lines
1.1 KiB
Ucode

//=============================================================================
// KFSeqAct_DisableDoor
//=============================================================================
// Disables one or more KFDoorActors, meaning they can't be interacted
// with or damaged
//=============================================================================
// Killing Floor 2
// Copyright (C) 2018 Tripwire Interactive LLC
//=============================================================================
class KFSeqAct_DisableDoor extends SequenceAction;
event Activated()
{
local SeqVar_Object ObjVar;
local KFDoorActor Door;
if (InputLinks[0].bHasImpulse)
{
foreach LinkedVariables(class'SeqVar_Object',ObjVar,"KFDoorActor(s)")
{
Door = KFDoorActor(ObjVar.GetObjectValue());
Door.SetInteractive(false);
Door.bIsDoorOpen = true;
Door.UseDoor(none);
}
}
}
defaultProperties
{
ObjCategory="Killing Floor"
ObjName="Disable Door"
InputLinks(0)=(LinkDesc="Disable")
VariableLinks(0)=(ExpectedType=class'SeqVar_Object',LinkDesc="KFDoorActor(s)",PropertyName="")
bCallHandler=false
}