#include "HostileTargetingGuntowerModule.h" #include "Net/UnrealNetwork.h" void AHostileTargetingGuntowerModule::OnPerceptionUpdated(AActor* sensedActor, FAIStimulus Stimulus) { } void AHostileTargetingGuntowerModule::GetLifetimeReplicatedProps(TArray& OutLifetimeProps) const { Super::GetLifetimeReplicatedProps(OutLifetimeProps); DOREPLIFETIME(AHostileTargetingGuntowerModule, TargetedActor); } AHostileTargetingGuntowerModule::AHostileTargetingGuntowerModule() { this->TurretRotationSpeed = 0.00f; this->TargetedActor = NULL; this->TargetingRotationSpeed = 3.00f; this->TimeUntilForgetTarget = 3.00f; this->AlwaysUpdateAimRotation = true; }