Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework > API/Runtime/Engine/GameFramework/AActor
- AActor::TakeDamage()
- AInteractiveFoliageActor::TakeDamage()
- APawn::TakeDamage()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
| Include | #include "GameFramework/Actor.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Actor.cpp |
virtual float TakeDamage
&40;
float DamageAmount,
struct FDamageEvent const & DamageEvent,
class AController &42; EventInstigator,
AActor &42; DamageCauser
&41;
Remarks
Apply damage to this actor. The amount of damage actually applied.
Parameters
| Name | Description |
|---|---|
| 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) |