Update, I have now set the variable to “replicated” and it works. However, when creating the BloodVignette Widget, it only appears on the server, not in the clients viewport.
I use this to take damage:
Where at the end of the function Take Damage I call the following:
Which adds the Blood Vignette to the viewport.
This is the Event Construct for the Blood Vignette Widget.
I understand, that the AnyDamage Event only runs on the server, but how can I still add the widget to the clients viewport?
The issue with doing it without the server run AnyDamage Event is, that I dont know, how to do the retriggerable delay inside a function.