Hello!
So i have problem with replicating function in c++. So i’ve created c++ FPS project and i’m trying to replicate OnFire() function so i’ve added this in .h file:
//FPSCharacter.h file
UFUNCTION(reliable, server, WithValidation)
void OnFire();
//FPSCharacter.cpp file;
void AFPSCharacter::OnFire_Implementation()
{
}
bool AFPSCharacter::OnFire_Validate()
{
return true;
}
This does not want to compile. Is there something that i’m doing wrong?