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 to check if all 9 buttons are pressed?

Hello. I have 9 buttons in my map and I want to create an event that triggers only if I have all 9 buttons pressed at the same time. What is the best way to go about this? Each button has it's own Boolean variable of true or false for either pressed or not pressed respectively.

Product Version: UE 4.21
Tags:
more ▼

asked Nov 24 '18 at 12:44 PM in Blueprint Scripting

avatar image

TheFivePercent
1

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

1 answer: sort voted first

The easiest way would be to create an Int variable in the level BP and increase it by 1 every time a button is pressed (and decrease when unpressed).Then check if Int == 9.
You have to be careful not to get into a situation when pressing one button multiple times increases the Int to 9. You have to either have the functionality of buttons unpressing, or just make them impossible to be pressed more than once.

more ▼

answered Nov 24 '18 at 12:56 PM

avatar image

Tuerer
1.8k 12 7 8

(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