RSExampleDashAbility.h
Click a line number to link it. Shift-click to select a range.
| 1 | // Copyright (c) 2026 Reignance Studios. MIT License, see LICENSE. |
| 2 | // Example only: a predicted ability with a stamina cost and a cooldown. |
| 3 | // Tutorial: https://reignancestudios.com/tutorial-gas-predicted-cost-cooldown |
| 4 | |
| 5 | #pragma once |
| 6 | |
| 7 | #include "CoreMinimal.h" |
| 8 | #include "Abilities/GameplayAbility.h" |
| 9 | #include "RSExampleDashAbility.generated.h" |
| 10 | |
| 11 | UCLASS() |
| 12 | class URSExampleDashAbility : public UGameplayAbility |
| 13 | { |
| 14 | GENERATED_BODY() |
| 15 | |
| 16 | public: |
| 17 | URSExampleDashAbility(); |
| 18 | |
| 19 | virtual void ActivateAbility( |
| 20 | const FGameplayAbilitySpecHandle Handle, |
| 21 | const FGameplayAbilityActorInfo* ActorInfo, |
| 22 | const FGameplayAbilityActivationInfo ActivationInfo, |
| 23 | const FGameplayEventData* TriggerEventData) override; |
| 24 | |
| 25 | protected: |
| 26 | UPROPERTY(EditDefaultsOnly, Category = "Dash") |
| 27 | float DashStrength = 1500.f; |
| 28 | }; |