Hi,
Please wrote those four functions here.
I have a function that called from Animation Blueprint and it’s just only run on client owner and server and not on other client,
I want to know how i can call it on other clients ? I get an error about no owning connection for that function.
This is my code:
.h
UFUNCTION(BlueprintCallable, Category = "Animation")
void EndAttack();
UFUNCTION(Reliable, Server, WithValidation)
void ServerEndAttack();
void ServerEndAttack_Implementation();
bool ServerEndAttack_Validate();
.cpp
void AMyClass::EndAttack()
{
if (Role < ROLE_Authority)
{
ServerEndAttack();
}
}
void AMyClass::ServerEndAttack_Implementation()
{
EndAttack();
}
bool AMyClass::ServerEndAttack_Validate()
{
return true;
}