All my replicated functions need to have _Implementation on their .cpp definitions so they dont cause LNK 2005 error but when i do that a green line under HandleFire() apears saying no definition found and i am stuck because I need to put _Implementation to stop linker error2005 but when I fix it it creates more they are
/////////////////////////////////////////////////////
MyCharacter.cpp.obj : error LNK2019: unresolved external symbol “public: __cdecl AMyCharacter::AMyCharacter(class FObjectInitializer const &)” (??0AMyCharacter@@QEAA@AEBVFObjectInitializer@@@Z) referenced in function “public: static void __cdecl AMyCharacter::__DefaultConstructor(class FObjectInitializer const &)” (?__DefaultConstructor@AMyCharacter@@SAXAEBVFObjectInitializer@@@Z)
////////////////////////////////////////////////////
MyCharacter.gen.cpp.obj : error LNK2001: unresolved external symbol “public: __cdecl AMyCharacter::AMyCharacter(class FObjectInitializer const &)” (??0AMyCharacter@@QEAA@AEBVFObjectInitializer@@@Z)
///////////////////////////////////////////////////
C:\UE4 Projects Moving forward\Mighty\Binaries\Win64\UE4Editor-Mighty-4393.dll : fatal error LNK1120: 1 unresolved externals
//////////////////////////////////////////////////
Character.h
UFUNCTION(BlueprintCallable, Category = "Gameplay")
void StartFire();
UFUNCTION(BlueprintCallable, Category = "Gameplay")
void StopFire();
UFUNCTION(Server, Reliable)
void HandleFire();
character.cpp
void AMyCharacter::StartFire()
{
// call handle fire function
}
void AMyCharacter::StopFire()
{
// stop fire bool
}
void AMyCharacter::HandleFire_Implementation()
{
// firing parameters taking in bool of stop fire
}