From 9f72e0891f471f6a375ae0ea1b9f891f54844472 Mon Sep 17 00:00:00 2001 From: Jonathan Rampersad Date: Mon, 18 Nov 2024 20:21:53 -0400 Subject: [PATCH] Replication Mode --- Source/Aura/Private/Character/AuraEnemy.cpp | 1 + Source/Aura/Private/Player/AuraPlayerState.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/Source/Aura/Private/Character/AuraEnemy.cpp b/Source/Aura/Private/Character/AuraEnemy.cpp index a3624c3..4f14413 100644 --- a/Source/Aura/Private/Character/AuraEnemy.cpp +++ b/Source/Aura/Private/Character/AuraEnemy.cpp @@ -19,6 +19,7 @@ AAuraEnemy::AAuraEnemy() AbilitySystemComponent = CreateDefaultSubobject("AbilitySystemComponent"); AbilitySystemComponent->SetIsReplicated(true); + AbilitySystemComponent->SetReplicationMode(EGameplayEffectReplicationMode::Minimal); AttributeSet = CreateDefaultSubobject("AttributeSet"); } diff --git a/Source/Aura/Private/Player/AuraPlayerState.cpp b/Source/Aura/Private/Player/AuraPlayerState.cpp index 15631cf..7c2ef99 100644 --- a/Source/Aura/Private/Player/AuraPlayerState.cpp +++ b/Source/Aura/Private/Player/AuraPlayerState.cpp @@ -10,6 +10,7 @@ AAuraPlayerState::AAuraPlayerState() { AbilitySystemComponent = CreateDefaultSubobject("AbilitySystemComponent"); AbilitySystemComponent->SetIsReplicated(true); + AbilitySystemComponent->SetReplicationMode(EGameplayEffectReplicationMode::Mixed); AttributeSet = CreateDefaultSubobject("AttributeSet");