Handle Knockdown and Recovery
Let a teammate revive a downed character before a timer expires. Start with the target from Apply Damage, Hit Reactions, and Death.
Turn a fatal hit into a downed state
Enable Can Enter Knocked Down State on the target's Combat Manager. In its Damage Data, put the Knock Down outcome before Death. Keep Death available for fatal hits that bypass knockdown. An incoming effect tagged
Combat.Effect.Damage.BypassKnockdowncan take this path.Set Knock Down Duration to a positive time, such as ten seconds, and Knock Down Health Percent to a positive fraction, such as 0.25 for a quarter of maximum health. Grant
CombatAbility_KnockDownandCombatAbility_KnockDownRecoveryalong with the death ability.Assign a fall montage to Knock Down and a stand-up montage to Recovery. Keep the built-in knocked-down, recovery, and dead effects for this test. In a
NinjaCombatAnimInstanceAnimation Blueprint, use Knocked Down to hold a grounded pose between the two montages.
Revive the downed character
For a simple revive zone, handle its overlap on the server. Check that the overlapping combatant is knocked down and send
Combat.Event.RecoverFromKnockDownto that combatant's ability system. A teammate's completed revive action can send the same event.To give up early, send
Combat.Event.GiveUpto the downed character. Otherwise the knockdown ability can enter the death flow when the time runs out.
For a revive prompt, use BindToKnockedDownStateChangedDelegate on the damage manager and hide the prompt when the state clears. If a subclass needs custom expiry feedback, override HandleKnockDownDurationEnded in Blueprint or HandleKnockDownDurationEnded_Implementation in C++. Call the parent to retain the normal expiry behavior.
Try It in Play
Take fatal damage and check the fall and grounded pose. Revive before expiry and check that the character stands with the configured fraction of health. Repeat on fresh targets, first waiting for expiry and then using Give Up. Both should enter the death flow.