Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/GameFramework/Pawn.h |
Include |
#include "GameFramework/Pawn.h" |
Source |
/Engine/Source/Runtime/Engine/Private/Pawn.cpp |
virtual bool ShouldTakeDamage
(
float Damage,
FDamageEvent const & DamageEvent,
AController * EventInstigator,
AActor * DamageCauser
) const
Return true if we are in a state to take damage (checked at the start of TakeDamage. Subclasses may check this as well if they override TakeDamage and don't want to potentially trigger TakeDamage actions by checking if it returns zero in the super class.