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"

I Have A Multiplyer Line Trace Problem

So i have line traces "successfully" replicating and doing damage and the line traces also go the right direction on the client side, But the line traces go slightly to the left for the other players when ever they are fired. Anyone got any ideas for what could be causing the problem?

Product Version: UE 4.19
more ▼

asked Apr 27 '18 at 01:28 AM in Blueprint Scripting

avatar image

1 1 1

avatar image MrMcKvarz Apr 27 '18 at 01:12 PM

What do you mean by replicating line traces?

avatar image GabeEternal Apr 27 '18 at 07:07 PM

Ok, I have a multicast event which shoots the line trace and that multicast custom event is plugged into a custom event that runs on the server then that custom event is activated by another custom event which I playerside. My game has third person and first person modes btw and in third person mode the line traces shoot out from the third person camera while in first person they shoot out of the first person camera. In singleplayer it works great (can't say the same for multiplayer...) If you didn't understand me (tbh I don't understand me either). Here's the link to the video I followed: https://youtu.be/fwgCpHu7sD8

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

1 answer: sort voted first

For your client-to-server RPC you might try adding a vector or rotator for the line trace direction so that even if there's a discrepancy between server and client rotations, the trace will be dead-on exactly the same as the Client's because it's passed in through the RPC.

more ▼

answered May 03 '18 at 05:13 PM

avatar image

3.8k 18 23 20

(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