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

36 lines
1.1 KiB
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFDroppedPickup_Carryable
//=============================================================================
// Implements dropped weapon/item pickups
//=============================================================================
// Killing Floor 2
// Copyright (C) 2015 Tripwire Interactive LLC
// - Christian "schneidzekk" Schneider
//=============================================================================
// Based on GearDroppedPickup
// Copyright 1998-2011 Epic Games, Inc. All Rights Reserved.
//=============================================================================
class KFDroppedPickup_Carryable extends KFDroppedPickup;
var float idleDestroyTime;
var KFObjectiveCollectActor ParentCollectActor;
simulated function PostBeginPlay()
{
SetTimer(idleDestroyTime, false, nameof(IdleDestroy));
}
simulated function IdleDestroy()
{
if (ParentCollectActor != none)
{
ParentCollectActor.DestroyingChildCarryable();
}
Destroy();
}
defaultproperties
{
idleDestroyTime = 20.f;
}