FGameplayAbilityTargetData_ActorArray

Target data with a source location and a list of targeted actors, makes sense for AOE attacks

Windows
MacOS
Linux

Inheritance Hierarchy

FGameplayAbilityTargetData

FGameplayAbilityTargetData_ActorArray

References

Module

GameplayAbilities

Header

/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/Abilities/GameplayAbilityTargetTypes.h

Include

#include "Abilities/GameplayAbilityTargetTypes.h"

Syntax

[USTRUCT](Programming/UnrealArchitecture/Reference/Structs)([BlueprintType](Programming/UnrealArchitecture/Reference/Structs/Specifiers/BlueprintType))
struct FGameplayAbilityTargetData_ActorArray : public FGameplayAbilityTargetData

Remarks

Target data with a source location and a list of targeted actors, makes sense for AOE attacks

Variables

Name Description

Public variable UProperty Category, EditAnywhere BlueprintReadWrite

FGameplayAbilit...

 

SourceLocation

We could be selecting this group of actors from any type of location, so use a generic location type

Public variable UProperty Category, EditAnywhere

TArray< TWeakOb...

 

TargetActorArray

Rather than targeting a single point, this type of targeting selects multiple actors.

Functions

Name Description

Public function

bool

 

NetSerialize

(
    FArchive& Ar,
    UPackageMap* Map,
    bool& bOutSuccess
)

Overridden from FGameplayAbilityTargetData

Name Description

Public function Virtual Const

TArray< TWea...

 

GetActors()

Returns all actors targeted, almost always overridden

Public function Virtual Const

FVector

 

GetEndPoint()

Override to return a target/end point

Public function Virtual Const

FTransform

 

GetOrigin()

Override to return an origin point, which may be derived from other data

Public function Virtual Const

UScriptStruc...

 

GetScriptStruct()

Returns the serialization data, must always be overridden

Public function Virtual Const

bool

 

HasEndPoint()

Override to true if GetEndPoint/Transform will work

Public function Virtual Const

bool

 

HasOrigin()

Override to true if GetOrigin will work

Public function Virtual

bool

 

SetActors

(
    TArray< TWeakObjectPtr< AActor >> N...
)

Modify the actor list

Public function Virtual Const

FString

 

ToString()

Returns a debug string representation

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