Created
June 14, 2018 15:45
-
-
Save dorgonman/c34111894b31074d744b02aa612be27e to your computer and use it in GitHub Desktop.
UE4_GAS_Attribute_Replicate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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