.h
UFUNCTION(Server, Unreliable) void Server_SetCurrentlyEquippedWeapon(TEnumAsByte NewEquipped);
void Server_SetCurrentlyEquippedWeapon_Implementation(TEnumAsByte NewEquipped);
.cpp
void AMyCharacter::Server_SetCurrentlyEquippedWeapon_Implementation(TEnumAsByte NewEquipped)
{
CurrentlyEquipped = NewEquipped;
}
Compiler Log
2>D:\UnrealProjects\Projects\MovementShooter\Intermediate\Build\Win64\UnrealEditor\Inc\MovementShooter\UHT\MyCharacter.gen.cpp(266): error C2511: ‘void AMyCharacter::Server_SetCurrentlyEquippedWeapon(EEquipped)’: overloaded member function not found in ‘AMyCharacter’
2>D:\UnrealProjects\Projects\MovementShooter\Source\MovementShooter\Public\MyCharacter.h(23): note: see declaration of ‘AMyCharacter’
2>D:\UnrealProjects\Projects\MovementShooter\Intermediate\Build\Win64\UnrealEditor\Inc\MovementShooter\UHT\MyCharacter.gen.cpp(270): error C2352: ‘UObject::FindFunctionChecked’: a call of a non-static member function requires an object
2>D:\EpicGames\Programs\UE_5.3\Engine\Source\Runtime\CoreUObject\Public\UObject\Object.h(1200): note: see declaration of ‘UObject::FindFunctionChecked’
I think I’m the only person having this issue because I’ve looked everywhere and I haven’t seen anything that helps with this.
Things I’ve tried:
I’ve made sure there are no syntax problems
Ive moved the function calls from private to public
I’ve tried cleaning the solution
I’ve tried it with a different function (it spat out the same error)
I am completely lost on how to go forward, this issue has completely halted my development progress.
Thanks,
Jorge