UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
DestructibleInterface.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4#include "UObject/Interface.h"
5#include "DestructibleInterface.generated.h"
6
7UINTERFACE(MinimalAPI)
12
14{
16public:
17 // Take damage
18 virtual void ApplyDamage(float DamageAmount, const FVector& HitLocation, const FVector& ImpulseDir, float ImpulseStrength) = 0;
19
20 // Take radius damage
21 virtual void ApplyRadiusDamage(float BaseDamage, const FVector& HurtOrigin, float DamageRadius, float ImpulseStrength, bool bFullDamage) = 0;
22};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UINTERFACE(...)
Definition ObjectMacros.h:780
#define GENERATED_IINTERFACE_BODY(...)
Definition ObjectMacros.h:770
#define GENERATED_UINTERFACE_BODY(...)
Definition ObjectMacros.h:769
Definition DestructibleInterface.h:14
virtual void ApplyRadiusDamage(float BaseDamage, const FVector &HurtOrigin, float DamageRadius, float ImpulseStrength, bool bFullDamage)=0
virtual void ApplyDamage(float DamageAmount, const FVector &HitLocation, const FVector &ImpulseDir, float ImpulseStrength)=0
Definition DestructibleInterface.h:9
Definition Interface.h:19