25. Attribut accessors complete
There is some jank, with the ability system init on character (I'll fix later). Cog replaces the usuals showdebug command
This commit is contained in:
1 parent
ced71b6a22
commit
c2e5793a7d
16 files changed
+265
-32
No files matched your search
@@ -73,6 +73,7 @@ void AGasaPlayerController::OnPossess(APawn* InPawn)
|
||||
AGasaPlayerState* PS = GetPlayerState();
|
||||
AGasaCharacter* character = Cast<AGasaCharacter>(InPawn);
|
||||
// Net Owner setup ability system
|
||||
if (0)
|
||||
{
|
||||
character->AbilitySystem = PS->AbilitySystem;
|
||||
character->Attributes = PS->Attributes;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "GasaPlayerState.h"
|
||||
|
||||
#include "AbilitySystem/GasaAbilitySystemComponent.h"
|
||||
#include "AbilitySystem/GasaAttributeSet.h"
|
||||
|
||||
AGasaPlayerState::AGasaPlayerState()
|
||||
{
|
||||
@@ -8,7 +9,7 @@ AGasaPlayerState::AGasaPlayerState()
|
||||
AbilitySystem->SetIsReplicated(true);
|
||||
AbilitySystem->SetReplicationMode(EGameplayEffectReplicationMode::Mixed);
|
||||
|
||||
Attributes = CreateDefaultSubobject<UAttributeSet>("Attributes");
|
||||
Attributes = CreateDefaultSubobject<UGasaAttributeSet>("Attributes");
|
||||
|
||||
// Replication
|
||||
NetUpdateFrequency = 100.f;
|
||||
|
||||
Reference in new issue
Block a user