...
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 Type | Name | Parameters | Description |
---|---|---|---|
UAblAbilityContext | CreateAbilityContext |
| Creates and returns an Ability Context. |
Context Methods
Return Type | Name | Parameters | Description |
---|---|---|---|
AActor | GetSelfActor | Returns the Self Target Type Actor | |
UAblAbilityComponent | GetSelfAbilityComponent | Returns the Ability Component of the Self Actor | |
AActor | GetOwner | Returns the Owner Target Type Actor | |
AActor | GetInstigator | Returns the Instigator Target Type Actor | |
Array<AActor> | GetTargetActors | Returns the Target Actor Target Type Array of Actors | |
Integer | GetCurrentStackCount | Returns the current stack count of the Ability. Default = 1. | |
None (Void) | SetStackCount | Integer | Sets the current stack count of the Ability. This is normally automatically done through the stacking system, but you can override it using this method. |
Float | GetCurrentTime | Retrieves the current time of the Ability. | |
Float | GetLastDeltaTime | Retrieves the last delta time used when updating the Ability. |