FDamageEvent

Inheritance Hierarchy

Syntax

struct FDamageEvent

Remarks

Event used by AActor::TakeDamage and related functions

Variables

Name Description

Public variable

TSubclassOf < cl...

 

DamageTypeClass

Optional DamageType for this event.

Constructors

Name Description

Public function

FDamageEvent()

Default constructor (no initialization).

Public function

FDamageEvent

(
    FDamageEvent const& InDamageEvent
)

Public function

FDamageEvent

(
    TSubclassOf < class UDamageType > In...
)

Destructors

Name Description

Public function Virtual

~FDamageEvent()

Functions

Name Description

Public function Virtual Const

void

 

GetBestHitInfo

(
    AActor const* HitActor,
    AActor const* HitInstigator,
    FHitResult & OutHitInfo,
    FVector & OutImpulseDir
)

This is for compatibility with old-style functions which want a unified set of hit data regardless of type of hit.

Public function Virtual Const

int32

 

GetTypeID()

Public function Virtual Const

bool

 

IsOfType

(
    int32 InID
)

Constants

Name

Description

ClassID

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

References

Module

Engine

Header

Runtime/Engine/Classes/Engine/EngineTypes.h