AbilitySystem.GlobalAbilityScale
AbilitySystem.GlobalAbilityScale
#Overview
name: AbilitySystem.GlobalAbilityScale
This variable is created as a Console Variable (cvar).
- type:
Var
- help:
Global rate for scaling ability stuff like montages and root motion tasks. Used only for testing/iteration, never for shipping.
It is referenced in 2
C++ source files.
#Summary
#References in C++ code
#Callsites
This variable is referenced in the following C++ source code:
#Loc: <Workspace>/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Private/AbilitySystemGlobals.cpp:612
Scope: file
Source code excerpt:
#if !(UE_BUILD_SHIPPING || UE_BUILD_TEST)
float AbilitySystemGlobalScaler = 1.f;
static FAutoConsoleVariableRef CVarOrionGlobalScaler(TEXT("AbilitySystem.GlobalAbilityScale"), AbilitySystemGlobalScaler, TEXT("Global rate for scaling ability stuff like montages and root motion tasks. Used only for testing/iteration, never for shipping."), ECVF_Cheat );
#endif
void UAbilitySystemGlobals::NonShipping_ApplyGlobalAbilityScaler_Rate(float& Rate)
{
#if !(UE_BUILD_SHIPPING || UE_BUILD_TEST)
Rate *= AbilitySystemGlobalScaler;
#Loc: <Workspace>/Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/AbilitySystemGlobals.h:180
Scope (from outer to inner):
file
function class GAMEPLAYABILITIES_API UAbilitySystemGlobals : public UObject { GENERATED_UCLASS_BODY
Source code excerpt:
bool bUseDebugTargetFromHud;
/** Helper functions for applying global scaling to various ability system tasks. This isn't meant to be a shipping feature, but to help with debugging and interation via cvar AbilitySystem.GlobalAbilityScale */
static void NonShipping_ApplyGlobalAbilityScaler_Rate(float& Rate);
static void NonShipping_ApplyGlobalAbilityScaler_Duration(float& Duration);
// Global Tags
/** TryActivate failed due to being dead */