diff --git a/Source/SkyFrontier/Private/DamageSystem.cpp b/Source/SkyFrontier/Private/DamageSystem.cpp index fa034bd..43ba125 100644 --- a/Source/SkyFrontier/Private/DamageSystem.cpp +++ b/Source/SkyFrontier/Private/DamageSystem.cpp @@ -5,7 +5,7 @@ { PrimaryComponentTick.bCanEverTick = false; PrimaryComponentTick.bStartWithTickEnabled = false; - SetIsReplicated(true); + SetIsReplicatedByDefault(true); ShootingDamage = 20; MissileDamage = 50; } diff --git a/Source/SkyFrontier/Private/HealthSystem.cpp b/Source/SkyFrontier/Private/HealthSystem.cpp index f15c573..52da4ff 100644 --- a/Source/SkyFrontier/Private/HealthSystem.cpp +++ b/Source/SkyFrontier/Private/HealthSystem.cpp @@ -7,7 +7,7 @@ { PrimaryComponentTick.bCanEverTick = false; PrimaryComponentTick.bStartWithTickEnabled = false; - SetIsReplicated(true); + SetIsReplicatedByDefault(true); MaxHealth = 100; } diff --git a/Source/SkyFrontier/Private/PointsComponent.cpp b/Source/SkyFrontier/Private/PointsComponent.cpp index c950c74..9da3d82 100644 --- a/Source/SkyFrontier/Private/PointsComponent.cpp +++ b/Source/SkyFrontier/Private/PointsComponent.cpp @@ -5,7 +5,7 @@ { PrimaryComponentTick.bCanEverTick = false; PrimaryComponentTick.bStartWithTickEnabled = false; - SetIsReplicated(true); + SetIsReplicatedByDefault(true); } void UPointsComponent::BeginPlay()