Added Event for when character is damaged

This commit is contained in:
2026-01-03 00:50:34 -05:00
parent 970101a74c
commit 5f827eeadf
3 changed files with 3 additions and 0 deletions

View File

@@ -83,6 +83,7 @@ void ADDICharacter::Server_SpawnProjectile_Implementation()
void ADDICharacter::Client_CharacterHit_Implementation() void ADDICharacter::Client_CharacterHit_Implementation()
{ {
TakeDamage(10); TakeDamage(10);
OnDamageTaken();
} }
bool ADDICharacter::Client_CharacterHit_Validate() bool ADDICharacter::Client_CharacterHit_Validate()

View File

@@ -24,6 +24,8 @@ protected:
/*Properties*/ /*Properties*/
/*Functions*/ /*Functions*/
UFUNCTION(BlueprintImplementableEvent, Category = "Events")
void OnDamageTaken();
public: public:
/*Properties*/ /*Properties*/