x

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"

Line tracing through multiplayer

Hey everyone. I've been trying to start up a multiplayer game. In this game each player has a line trace that is looking for things that can be interacted with. It works fine for the server; the line is being shot from the center of the server players view, but any clients will have it shooting from their pawns face with any animated movements it makes. Right now the server is taking the character's camera and shooting out a a line from there. How can I take into account where the client is looking without doing a trace from the client, or can you do a trace from the client without any replication issues?

alt text alt text alt text

Product Version: UE 4.7
Tags:
more ▼

asked May 13 '15 at 06:27 PM in Blueprint Scripting

avatar image

_cDub
109 13 14 17

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

1 answer: sort voted first

To make it so that the trace follows where the player is looking even when a client, I added a boom, placed it where the camera will be, then made the camera a child to that boom. In the camera settings check "Use Pawn Control."

more ▼

answered May 15 '15 at 12:10 AM

avatar image

_cDub
109 13 14 17

(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