Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Target Actor Target Type is an array of the Target Actors of an Ability. This Target Type can be populated in a number of ways, the most common is using the Targeting logic in the Ability. However, you can also populate it during Ability execution using the Collision Query / Sweep / Raycast tasks and selecting the "Copy to Context" option. That information is then available to the Context the frame after the Task completes and is Async safe. If the Ability doesn't require targets, then this array is simply empty.

Camera

The Camera Target Type references the current camera of the Self target type. It is mainly used to by location based Task properties to get the Camera transform. Setting the Target of a Task (for example, Apply Damage) to Camera will simply return the Self Actor.


Blueprint Library Methods

Return TypeNameParametersDescription
UAblAbilityContextCreateAbilityContext
  • (UAblAbility) Ability - The Ability to execute.
  • (UAblAbilityComponent) Ability Component - The Ability Component that will be executing this Ability.
  • (AActor) Owner - The Actor to set as the Owner of this Ability (optional).
  • (AActor) Instigator - The Actor to set as the Instigator of this Ability (optional).
Creates and returns an Ability Context.


Context Methods

Return TypeNameParameters Description
AActorGetSelfActor
Returns the Self Target Type Actor
UAblAbilityComponentGetSelfAbilityComponent
Returns the Ability Component of the Self Actor
AActorGetOwner
Returns the Owner Target Type Actor
AActorGetInstigator
Returns the Instigator Target Type Actor
Array<AActor>GetTargetActors
Returns the Target Actor Target Type Array of Actors
IntegerGetCurrentStackCount
Returns the current stack count of the Ability. Default = 1.
None (Void)SetStackCountIntegerSets the current stack count of the Ability. This is normally automatically done through the stacking system, but you can override it using this method.
FloatGetCurrentTime
Retrieves the current time of the Ability.
FloatGetLastDeltaTime
Retrieves the last delta time used when updating the Ability.