AInteractiveFoliageActor::TakeDamage

Apply damage to this actor.

Windows
MacOS
Linux

Override Hierarchy

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

Syntax

virtual float TakeDamage
(
    float DamageAmount,
    struct FDamageEvent const & DamageEvent,
    class AController * EventInstigator,
    class AActor * DamageCauser
)

Remarks

Apply damage to this actor.

Returns

The amount of damage actually applied.

Parameters

Parameter

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)

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss