Modifying Environment on Server is Not Replicating to Clients even with NetMulticast
I'm building a co-op game and I'm trying to ensure that there are some tasks in the game that are achievable together. One of those tasks is lighting a fire. However, I'm having problems replicating the fire to the clients.
When a character goes to use an item. The particle effect doesn't spawn on his screen or any of the other clients.
However, it is spawning on what I'm assuming is the server since it's the main window in the Unreal Engine editor.
I have also tried multicast. I set the UseItem to Netmulticast and then removed the if (Role < ROLE_Authority) code from the UseItem_Implementation and it worked on just the client that called it. If I left the if (Role < ROLE_Authority) in there, it was never called at all and spawned on no clients.
Any help would be GREATLY appreciated. Even pointing me to a particular location in an example project would be helpful. Thank you for your time.
asked Jul 15 '17 at 02:42 PM in C++ Programming
Here is some code to begin with:
Make sure you have "OnlineSubsystem" in your MYPROJECT.Build.cs, PublicDependencyModuleNames;
answered Jul 15 '17 at 06:24 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here