Gameplay Ability (GA)
Last updated
Last updated
A Gameplay Ability is any action the ASC (Ability System Component) can use. These can be spells, skills, passives, interactions or any other action. The most common ability types (Instant, Passive, Toggeable, Projectile) are implemented. You can also extend the GameplayAbility class to create even more interesting abilities.
Create a GameplayAbility ScriptableObject: 1. Right click in a folder on the editor -> Create -> GAS -> GameplayAbilitySO - InstantAbility 2. Select it, add GameplayEffects to EffectsSO, add tags to describe the behaviour of the GA. 3. Drag and drop it on a GroupASC.
Effects are objects that live in the GA itself, they cannot be shared across other GAs. EffectSO are objects that live in the editor, they are shareable and reusable across different GAs. The Effects property is useful when you want to create abilities using code, without having to create a ScriptableObject for it, it is a rare use case but it is supported. Prefer to use EffectsSO.
These are optional ways to control and constraint the GameplayAbility (GA).
You can override these and make additional checks if needed. e.g. SERVER CHECKS FOR TARGET ASC's CONNECTION. e.g. CHECK DISTANCE, CHECK LOS
These are references to the ASCs the ability has been last activated with.
Define what GameplayCues will be triggered when the ability is activated. Check the GameplayCues Library folder to know which prefab is associated with which tag.
ActivationOwnedTags This is the most commonly used tag property. While this Ability is active/executing, the owner of the Ability will be granted this set of Tags.
DescriptionTags Tags that describe the GameplayAbility. They do not do any function on their own and serve only the purpose of describing the GameplayAbility.
CancelAbilitiesWithTags Active Gameplay Abilities (on the same ASC) that have these tags will be cancelled. Cancels any already-executing Ability with Tags matching the list provided while this Ability is executing.
BlockAbilitiesWithTags Gameplay Abilities that have these tags will be blocked from activating on the same character SourceTagsRequired If any of these tags IS NOT present on source ASC, this ability won't be activated. SourceTagsForbidden If any of these tags IS present on source ASC, this ability won't be activated.
TargetTagsRequired If any of these tags IS NOT present on target, this ability won't be activated.
TargetTagsForbidden If any of these tags IS present on target, this ability won't be activated.