UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FPointDamageEvent Struct Reference

#include <DamageEvents.h>

+ Inheritance diagram for FPointDamageEvent:

Public Member Functions

 FPointDamageEvent ()
 
 FPointDamageEvent (float InDamage, const FHitResult &InHitInfo, FVector const &InShotDirection, TSubclassOf< UDamageType > InDamageTypeClass)
 
virtual int32 GetTypeID () const override
 
virtual bool IsOfType (int32 InID) const override
 
virtual ENGINE_API void GetBestHitInfo (AActor const *HitActor, AActor const *HitInstigator, FHitResult &OutHitInfo, FVector &OutImpulseDir) const override
 
- Public Member Functions inherited from FDamageEvent
 FDamageEvent ()
 
 FDamageEvent (FDamageEvent const &InDamageEvent)
 
virtual ~FDamageEvent ()
 
 FDamageEvent (TSubclassOf< UDamageType > InDamageTypeClass)
 

Public Attributes

float Damage
 
FVector_NetQuantizeNormal ShotDirection
 
FHitResult HitInfo
 
- Public Attributes inherited from FDamageEvent
TSubclassOf< UDamageTypeDamageTypeClass
 

Static Public Attributes

static const int32 ClassID = 1
 
- Static Public Attributes inherited from FDamageEvent
static const int32 ClassID = 0
 

Detailed Description

Damage subclass that handles damage with a single impact location and source direction

Constructor & Destructor Documentation

◆ FPointDamageEvent() [1/2]

FPointDamageEvent::FPointDamageEvent ( )
inline

◆ FPointDamageEvent() [2/2]

FPointDamageEvent::FPointDamageEvent ( float  InDamage,
const FHitResult InHitInfo,
FVector const &  InShotDirection,
TSubclassOf< UDamageType InDamageTypeClass 
)
inline

Member Function Documentation

◆ GetBestHitInfo()

void FPointDamageEvent::GetBestHitInfo ( AActor const *  HitActor,
AActor const *  HitInstigator,
FHitResult OutHitInfo,
FVector OutImpulseDir 
) const
overridevirtual

Simple API for common cases where we are happy to assume a single hit is expected, even though damage event may have multiple hits.

Reimplemented from FDamageEvent.

◆ GetTypeID()

virtual int32 FPointDamageEvent::GetTypeID ( ) const
inlineoverridevirtual

Reimplemented from FDamageEvent.

◆ IsOfType()

virtual bool FPointDamageEvent::IsOfType ( int32  InID) const
inlineoverridevirtual

Reimplemented from FDamageEvent.

Member Data Documentation

◆ ClassID

const int32 FPointDamageEvent::ClassID = 1
static

ID for this class. NOTE this must be unique for all damage events.

◆ Damage

float FPointDamageEvent::Damage

Actual damage done

◆ HitInfo

FHitResult FPointDamageEvent::HitInfo

Describes the trace/location that caused this damage

◆ ShotDirection

FVector_NetQuantizeNormal FPointDamageEvent::ShotDirection

Direction the shot came from. Should be normalized.


The documentation for this struct was generated from the following files: