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

36 lines
1.1 KiB
Ucode

//=============================================================================
// 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;
}