Announcement

Collapse
No announcement yet.

An easier way? (Network replication)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    An easier way? (Network replication)

    Hi

    I have just plunged into the wonderful world of networking creation.

    Click image for larger version

Name:	Netw.jpg
Views:	1
Size:	182.3 KB
ID:	1188335

    Is there an easier way to get the client to replicate an action on the server, which in turn then gets replicated to the network?
    Or is it just setting a WHOLE lot of custom events?

    Not just talking this blueprint, but in general.
    Although you may also gladly point any obvious errors out

    Thanks

    #2
    This seems pretty standard. Even looking at the C++ code for ShooterGame, it does similar things like this, but it looks a bit cleaner just because it is a simple IF statement.

    Although in this case, I think all you need to do is make acting and blocking replicated variables and you would just need to set them on the server instead of having to do a multicast.

    Comment


      #3
      Thank you :-) That worked. One corner cut today ^^

      Comment


        #4
        FYI - You dont those authority switches in your code. Just call BlockToServer and BlockEndToServer directly. The authority side can call the server functions and it will run just fine.

        Comment


          #5
          Two corners cut :-D The graph is beginning to look manageable. Thank you too.

          Comment

          Working...
          X