rott/kf_sources/ScrnStoryGame/Classes/ACTION_IfIsHurt.uc
2026-07-14 20:27:09 +07:00

21 lines
416 B
Ucode

// Same as ACTION_IfMonsterIsHurt, but can be used with any Pawn (e.g. NPC)
class ACTION_IfIsHurt extends ScriptedAction;
var() int HealthThreshold;
function ProceedToNextAction( ScriptedController C )
{
C.ActionNum += 1;
if ( C.Pawn.Health > HealthThreshold )
ProceedToSectionEnd( C );
}
function bool StartsSection()
{
return true;
}
defaultproperties
{
}