Ed_
c2e5793a7d
There is some jank, with the ability system init on character (I'll fix later). Cog replaces the usuals showdebug command
17 lines
490 B
C++
17 lines
490 B
C++
#include "GasaPlayerState.h"
|
|
|
|
#include "AbilitySystem/GasaAbilitySystemComponent.h"
|
|
#include "AbilitySystem/GasaAttributeSet.h"
|
|
|
|
AGasaPlayerState::AGasaPlayerState()
|
|
{
|
|
AbilitySystem = CreateDefaultSubobject<UGasaAbilitySystemComp>("Ability System");
|
|
AbilitySystem->SetIsReplicated(true);
|
|
AbilitySystem->SetReplicationMode(EGameplayEffectReplicationMode::Mixed);
|
|
|
|
Attributes = CreateDefaultSubobject<UGasaAttributeSet>("Attributes");
|
|
|
|
// Replication
|
|
NetUpdateFrequency = 100.f;
|
|
}
|