Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Excluding a specific client from a multicast?

How do I exclude a specific client from a multicast?

Hello, I'm working on a coop game on which the pawn are physics driven only (only applying forces at some locations of the skeletal mesh according to user inputs - airplane simulation). And I am having a hard time replicating correctly over the network.

I choosed to make every client in full control of their movments (not asking the server to apply forces), because it'll be a coop/solo only game and cheating is none of my concerns.

I'm not using the "replicate movment" code in the actors as it is not working right for me with the "physics only" based movements.

here is the shema of my intended networking right now:

alt text

I already tried to get player id from the client who ask to update in the first place, then get the player id in the multicast and compare, but the player id in the multicast is always 0.

Thanks for reading, any suggestions will be appreciated :)

Product Version: UE 4.10
more ▼

asked Mar 27 '16 at 02:10 PM in Using UE4

avatar image

33 5 7 13

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

OK, I figured it out myself, it's currently in blueprints (faster to test) but I'll be putting this logic inside my aircraft class today. I just do a is local controller on the controller of the pawn i want to update, and if it's true, that's mean we are about to update the pawn locally controlled (we don't want to do this), add an inverter a branch and it's done. I have a multicast that doesn't fire on the client who requested it. Which makes client authoritive coop game possible (not good for cheating). I got a lot of valuable info on this thread (thx rama): https://forums.unrealengine.com/showthread.php?17078-Video-Player-Controlled-Replicating-Physics-Movement-Simulating-Physics!

alt text

alt text

bp_1.png (122.6 kB)
bp_2.png (118.0 kB)
more ▼

answered Mar 28 '16 at 09:15 AM

avatar image

33 5 7 13

avatar image SoulTripper Nov 10 '17 at 05:41 PM

Awesome. This is exactly what I need. Thanks for posting your solution!

avatar image Arty-McLabin Feb 28 '18 at 09:06 PM

thanks for your valuable question and answer :] going to use that.

by the way why don't you mark your own answer as accepted?

avatar image Namiiiria Feb 28 '18 at 09:50 PM

I haven't figured how to do that yet ^^"

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question