Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayModMagnitudeCalculation.h |
Include |
#include "GameplayModMagnitudeCalculation.h" |
UCLASS(BlueprintType, Blueprintable, Abstract)
class UGameplayModMagnitudeCalculation : public UGameplayEffectCalculation
Class used to perform custom gameplay effect modifier calculations, either via blueprint or native code
Name | Description | ||
---|---|---|---|
|
bAllowNonNetAuthorityDependencyRegistration |
Whether the calculation allows non-net authorities to register the external dependency multi-cast delegate or not; Effectively whether clients are allowed to perform the custom calculation themselves or not |
Name | Description | |
---|---|---|
|
UGameplayModMagnitudeCalculation ( |
Name | Description | ||
---|---|---|---|
|
float |
CalculateBaseMagnitude ( |
Calculate the base magnitude of the gameplay effect modifier, given the specified spec. |
|
GetCapturedAttributeMagnitude ( |
Convenience method to get attribute magnitude during a CalculateMagnitude call |
|
|
FOnExternalG... |
GetExternalModifierDependencyMulticast ( |
If the magnitude resultant from the custom calculation depends on game code-specific conditions that are not under the purview of the ability system, this method should be overridden to provide a multicast delegate that will fire when the reliant conditions change, so that the magnitude can be recalculated and updated. |
|
float |
GetSetByCallerMagnitudeByName ( |
Extracts the Set by Caller Magnitude from a Gameplay Effect Spec |
|
float |
GetSetByCallerMagnitudeByTag ( |
Extracts the Set by Caller Magnitude from a Gameplay Effect Spec |
|
const FGamep... |
GetSourceActorTags ( |
Returns the source actor tags from a Gameplay Effect Spec |
|
FGameplayTag... |
GetSourceAggregatedTags ( |
Copies and returns the source aggregated tags from a Gameplay Effect Spec |
|
const FGamep... |
GetSourceSpecTags ( |
Returns the source spec tags from a Gameplay Effect Spec |
|
const FGamep... |
GetTargetActorTags ( |
Returns the target actor tags from a Gameplay Effect Spec Useful for Modifier Magnitude Calculations |
|
FGameplayTag... |
GetTargetAggregatedTags ( |
Copies and returns the target aggregated tags from a Gameplay Effect Spec |
|
const FGamep... |
GetTargetSpecTags ( |
Returns the target spec tags from a Gameplay Effect Spec Useful for Modifier Magnitude Calculations |
|
float |
K2_GetCapturedAttributeMagnitude ( |
Gets the captured magnitude value for the given Attribute For this to work correctly, the Attribute needs to be added to the Relevant Attributes to Capture array |
|
ShouldAllowNonNetAuthorityDependencyRegistration() |
Simple accessor to bAllowNonNetAuthorityDependencyRegistration with some validation: Read the comment on that variable for usage!!! |