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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

How do I make an action mapping require multiple button presses?

I want something to need to have 2 buttons pressed at once Left Shoulder + Right Shoulder in order to trigger the action rather than it being Left Shoulder or Right Shoulder

Product Version: UE 4.12
Tags:
more ▼

asked Jul 03 '16 at 11:02 AM in Blueprint Scripting

avatar image

7hrone
3 2 4

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

1 answer: sort voted first

Boolean is the answer (or boolean + branch).

more ▼

answered Jul 03 '16 at 11:34 AM

avatar image

DDemon
473 21 10 25

avatar image 7hrone Jul 03 '16 at 12:40 PM

I'm still trying to wrap my head around UE do you think you could give me an example. I'm having trouble understanding how to get button presses to be a variable

avatar image DDemon Jul 03 '16 at 06:41 PM

Have a booleans PressedLeftStick and PressedRightStick when you press one of the buttons change its boolean to true, when you release one of them change its boolean to false. Now this part depends on what type of button it is if its a one click button both of the buttons should have two branches with the both of the boolean connected in them, and what you want to happen. If its hold type you can add the two branches only to one button that will be enough.(or you can add the branches to TICK event) PS: branch is like IF in programing for boolean. Good luck

avatar image 7hrone Jul 04 '16 at 05:24 AM

Yep that worked out for my thank you.

(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