Animation Montage replicates only once on client

I have an actor that can shoot fireballs indefinitely as long as the left mouse button is held. When I play with two clients I’m able to see the animation montage play once for both but when I try to shoot again the animation montage doesn’t get replicated to the other client anymore. I’m going to attach my BPs for anyone who’s interested on looking at them. Perhaps my approach is wrong.


Event Graph


Start Combat Function


Stop Combat Function


Play Replicated Animation Function

PlayReplicatedAnimation.jpg
OnRep_PlayAnimationMontage Function

I figured it out. Following the CouchKnights demo I realized that if I play the same animation in a row, the replicated function will not trigger since the variable did not get changed. I have added a call to clear the value of the replicated variable so when I attempt the animation again it will trigger the replicated function.

ClearAnimationMontage.png