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

28 lines
883 B
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
//=============================================================================
// KFSM_PlaySingleAnim_ScriptedPawn
//=============================================================================
// Play a single animation on a scripted pawn
//=============================================================================
// Killing Floor 2
// Copyright (C) 2018 Tripwire Interactive LLC
//=============================================================================
class KFSM_PlaySingleAnim_ScriptedPawn extends KFSM_PlaySingleAnim;
function PlayAnimation()
{
local KFPawn_Scripted KFPS;
KFPS = KFPawn_Scripted(KFPOwner);
if (KFPS != none)
{
AnimName = KFPS.GetStateTransitionAnim();
if (AnimName != `NAME_None)
{
PlaySpecialMoveAnim(AnimName, AnimStance, BlendInTime, BlendOutTime, 1.f);
return;
}
}
KFPOwner.EndSpecialMove();
}