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"

Multiplayer mouse rotation affecting all players / actors

Hi There,

I am trying to create a top down multiplayer game where the mouse is used to control the rotation of the person's character.

My below setup worked for singleplayer, however, I find that when I test in mutiplayer (This is the base character blueprint) that this setup affects ALL the players in the server.

For example, when one player moves their mouse to the left, both actors (or player models) look in that direction and follow the mouse.

I suspect that it has something to do with setting the target for "SetWorldRotation" as the mesh of the actor, and the target demanding to be a scene component, but I am unsure how to fix this.

If anyone could help me, I would really appreciate it!

alt text alt text

Product Version: UE 4.20
mouse-look.png (260.3 kB)
more ▼

asked Apr 03 '19 at 12:51 PM in Blueprint Scripting

avatar image

3 1 3

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

1 answer: sort voted first

I figured it out, instead of targeting the scene component and the mesh, I used SetActorRotation and GetActorLocaiton, both targeting Get Player Character.

Now I just need to figure out how to replicate the character's rotation to the server...

more ▼

answered Apr 03 '19 at 11:50 PM

avatar image

3 1 3

(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