Use of delegates in Blueprint and Network
I made a new delegate, like this.
And then i added it to my class like this.
Then in the method i have in my Game State class to update the time, i want to Broadcast / "Send" the event. (The method where i use ::Broadcast(,,) is only ever called on the server.)
But the problem is that i can only see the delegate fire on the server, but should they not also fire on the clients as they also have the GameState and its Broadcasted from the server?
I know for a UFUNCTION() i can use NetMulticast to have the method execute on all clients. Is this not the same for MULTICAST Delegates?
Delegates are not replicated.
Executing delegate from server, on clients it's bit tricky, need some forethought and invovles writing quite a bit of supporting code.
answered Aug 12 '14 at 09:48 AM
I think delegate it's kind of like an event, and you still need to tell the event to run on client, server or netmulticast, i don't know exactly multicast use for though.
answered Aug 12 '14 at 08:53 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here