GASATHON/Project/Source/Gasa/Characters/PlayerCharacter.cpp
2024-04-13 11:56:19 -04:00

24 lines
463 B
C++

#include "PlayerCharacter.h"
#include "AbilitySystemComponent.h"
APlayerCharacter::APlayerCharacter()
{
PrimaryActorTick.bCanEverTick = true;
bAutoAbilitySystem = false;
}
void APlayerCharacter::OnRep_PlayerState()
{
Super::OnRep_PlayerState();
AGasaPlayerState* PS = GetGasaPlayerState();
// Client setup ability system
{
AbilitySystem = PS->AbilitySystem;
Attributes = PS->Attributes;
AbilitySystem->InitAbilityActorInfo(PS, this);
}
}