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 can I control my character with gamepad? (screenshot)

How can I make a script similar to this but use a gamepad's right stick? Matter of fact I don't like the mouse idea at all, is there a better way to do this? (Especially when splitscreen is involved.)

alt text

Product Version: UE 4.18
how.jpg (86.3 kB)
more ▼

asked Jan 22 '18 at 09:32 PM in Blueprint Scripting

avatar image

C. Satizabal
34 5 9 15

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

1 answer: sort voted first

Hey there, if you look at the third person template that should be implemented.

more ▼

answered Jan 23 '18 at 12:40 PM

avatar image

6k 163 129 305

avatar image C. Satizabal Jan 23 '18 at 06:13 PM

That is not what I am asking.

avatar image xlar8or Jan 23 '18 at 06:14 PM

Maybe if you explain what you want a bit more, we can help a bit better.

avatar image C. Satizabal Jan 23 '18 at 11:01 PM

I gave you the blueprint.. If you read what I said and understood the blueprint you'd know.

avatar image ThompsonN13 Jan 23 '18 at 11:18 PM

it looks like your basically trying to make the character rotate to look at the location of where the cursor is, though its not immediately clear. given that you dont use a cursor generally when using a controller what your trying to accomplish makes zero sense and the answer xlar8or is right. I suggest making things clearer when asking the question it makes things easier on those who are going out of their way to help. Also just posting the blueprint isn;t enough, if i had to figure out what people are trying to do by their blueprints that dont work no thing would ever get solved.

avatar image C. Satizabal Jan 23 '18 at 11:43 PM

It does make sense, you know what I am trying to do, so what I am asking is if there is another way to control the players rotation with the gamepads right stick and the mouse but not the curser, okay I wasn't that specific but its not that difficult to figure out.

avatar image ThompsonN13 Jan 24 '18 at 12:47 AM

the only good way to do it with the gamepad is with add input yaw which to my knowledge if the way its done in the third person character. the other thing i would take a look at is the top down shooter example but it probably has something similar. when using a gamepad and not using any kind of cursor you dont need all the vector math and the stuff in your picture. itll also be better performace wise if your nut running it off of tick.

avatar image C. Satizabal Jan 24 '18 at 01:41 AM

Yes, this'll work, thanks.

(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