22 lines
624 B
C++
Executable file
22 lines
624 B
C++
Executable file
#include "ThrowableActor.h"
|
|
#include "GameFramework/ProjectileMovementComponent.h"
|
|
#include "Net/UnrealNetwork.h"
|
|
|
|
|
|
|
|
void AThrowableActor::OnRep_IsMoving() {
|
|
}
|
|
|
|
void AThrowableActor::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLifetimeProps) const {
|
|
Super::GetLifetimeReplicatedProps(OutLifetimeProps);
|
|
|
|
DOREPLIFETIME(AThrowableActor, IsMoving);
|
|
}
|
|
|
|
AThrowableActor::AThrowableActor() {
|
|
this->Movement = CreateDefaultSubobject<UProjectileMovementComponent>(TEXT("ProjectileMovement"));
|
|
this->IsMoving = true;
|
|
this->IgnoreFellOutOfWorld = false;
|
|
this->IgnoreOwnersCollision = true;
|
|
}
|
|
|