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

35 lines
953 B
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFSeqAct_SetPathnodeExtraCost
//=============================================================================
// Action that will set Extra Cost for the path node. Used to bypass ModifyProperty.
//=============================================================================
// Killing Floor 2
// Copyright (C) 2018 Tripwire Interactive LLC
//=============================================================================
class KFSeqAct_SetPathnodeExtraCost extends SequenceAction;
var() int ExtraCost;
event Activated()
{
local Object ObjVar;
local NavigationPoint NavPoint;
foreach Targets(ObjVar)
{
NavPoint = NavigationPoint(ObjVar);
if (NavPoint != none)
{
NavPoint.ExtraCost = ExtraCost;
}
}
}
defaultproperties
{
ObjCategory="Killing Floor"
ObjName="Modify Extra Cost for Pathnode(s)"
bCallHandler=FALSE
}