#include "ThrowableActor.h" #include "GameFramework/ProjectileMovementComponent.h" #include "Net/UnrealNetwork.h" void AThrowableActor::OnRep_IsMoving() { } void AThrowableActor::GetLifetimeReplicatedProps(TArray& OutLifetimeProps) const { Super::GetLifetimeReplicatedProps(OutLifetimeProps); DOREPLIFETIME(AThrowableActor, IsMoving); } AThrowableActor::AThrowableActor() { this->Movement = CreateDefaultSubobject(TEXT("ProjectileMovement")); this->IsMoving = true; this->IgnoreFellOutOfWorld = false; this->IgnoreOwnersCollision = true; }