Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/AActor
Description
Apply damage to this actor.
Derived Overrides
| Name | TakeDamage |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
| Include Path | #include "GameFramework/Actor.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Actor.cpp |
virtual float TakeDamage
(
float DamageAmount,
struct FDamageEvent const & DamageEvent,
class AController * EventInstigator,
AActor * DamageCauser
)
The amount of damage actually applied.
Parameters
| Name | Remarks |
|---|---|
| DamageAmount | How much damage to apply |
| DamageEvent | Data package that fully describes the damage received. |
| EventInstigator | The Controller responsible for the damage. |
| DamageCauser | The Actor that directly caused the damage (e.g. the projectile that exploded, the rock that landed on you) |