Skip to content

Instantly share code, notes, and snippets.

@dorgonman
Created June 14, 2018 15:45
Show Gist options
  • Save dorgonman/c34111894b31074d744b02aa612be27e to your computer and use it in GitHub Desktop.
Save dorgonman/c34111894b31074d744b02aa612be27e to your computer and use it in GitHub Desktop.
UE4_GAS_Attribute_Replicate
void UMyHealthSet::GetLifetimeReplicatedProps(TArray< FLifetimeProperty > & OutLifetimeProps) const
{
Super::GetLifetimeReplicatedProps(OutLifetimeProps);
   DOREPLIFETIME_CONDITION_NOTIFY(UMyHealthSet, Health, COND_None, REPNOTIFY_Always);
}
void UMyHealthSet::OnRep_Health()
{
    GAMEPLAYATTRIBUTE_REPNOTIFY(UMyHealthSet, Health);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment