So I’m a bit confused here. I’m just adding onto the Introduction to programming series.
After digging through both these links: [Networking/Replication][1] // [Networking Tips and Tricks][2]. Followed up by digging through the code in the Shooter Game. I cannot figure out why I’m getting “GetLifetimeReplicatedProps Error: Inherited member is not allowed” issue.
void ATopDownGameCharacter::GetLifetimeReplicatedProps(TArray< FLifetimeProperty > & OutLifetimeProps) const
{
Super::GetLifetimeReplicatedProps(OutLifetimeProps);
DOREPLIFETIME(ATopDownGameCharacter, PowerLevel);
}
Everything I’m reading, and seeing in the code does not suggest GetLifetimeReplicatedProps should be in a header somewhere (for that matter i tried and it says it’s declared elsewhere). Anyone have any suggestions?
I’m really just working toward syncing the power level from the tutorial. The game compiles fine and runs power level doesn’t sync at this point but I’m not sure if this is a direct correlation or not.
EDIT: as a side note, I applied the tutorial series to a top down game template rather than 3rd person.