You need to call this function as a SERVER RPC from game mode class.
Look for UE4 Networking Method Calling structure.
UFUNCTION(Server, Reliable, Validate)
void MethodName();
You need to call this function as a SERVER RPC from game mode class.
Look for UE4 Networking Method Calling structure.
UFUNCTION(Server, Reliable, Validate)
void MethodName();