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"

How do I set use controller pitch on client?

Hello everyone, I've set up a system in which the player switches to use first person arms when aiming, however in order to get the arms to move up and down, use controller pitch needs to be enabled. The issue is that while in multiplayer, the player's pitch is replicated no matter what, so when I look down in multiplayer the model looks downwards as well. Here's a quick video of the issue: https://www.youtube.com/watch?v=NWSC6_N05eY&feature=youtu.be

You can see it works fine for the client, but not for the server. Thanks for any help in advance!

Product Version: UE 4.16
Tags:
more ▼

asked Jul 12 '17 at 01:27 PM in Blueprint Scripting

avatar image

ajfe
1 1

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

1 answer: sort voted first

check if the actor the current instance of the game is the owner of that character and disable pitch if not

more ▼

answered Jul 12 '17 at 04:57 PM

avatar image

MatzeOGH
526 18 6 26

avatar image ajfe Jul 12 '17 at 05:50 PM

I'm not quite sure how to check that with the way I have it set up.

Right now it's just a function in the player blueprint that controls everything.

avatar image MatzeOGH Jul 12 '17 at 06:33 PM

Use the hasAuthority blueprint node If you dont have Authority disable the pitch

avatar image ajfe Jul 12 '17 at 10:54 PM

Well that means only the client would be able to set use pitch, and the server can't.

avatar image MatzeOGH Jul 12 '17 at 10:59 PM

That way you get the correct rotation on the client. But other clients don't see you pitching down

avatar image ajfe Jul 13 '17 at 12:13 AM

Right but it doesn't work that way for the server player

(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