20 lines
700 B
C++
Executable file
20 lines
700 B
C++
Executable file
#include "HostileTargetingGuntowerModule.h"
|
|
#include "Net/UnrealNetwork.h"
|
|
|
|
void AHostileTargetingGuntowerModule::OnPerceptionUpdated(AActor* sensedActor, FAIStimulus Stimulus) {
|
|
}
|
|
|
|
void AHostileTargetingGuntowerModule::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& 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;
|
|
}
|
|
|