Navigation
API > API/Runtime > API/Runtime/Foliage > API/Runtime/Foliage/AInteractiveFoliageActor
- AActor::TakeDamage()
- AInteractiveFoliageActor::TakeDamage()
References
| Module | Foliage |
| Header | /Engine/Source/Runtime/Foliage/Public/InteractiveFoliageActor.h |
| Include | #include "InteractiveFoliageActor.h" |
| Source | /Engine/Source/Runtime/Foliage/Private/FoliageComponent.cpp |
virtual float TakeDamage
&40;
float DamageAmount,
struct FDamageEvent const & DamageEvent,
class AController &42; EventInstigator,
class 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) |