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"

Play matinee if serial integer is greater than (certain number)

UE 4.9.2

I have a matinee, where a box moves up when I press 'g' on keyboard. But I am using a sensor and Arduino and want the matinee to play when the serial integer is greater than 511. I have the blueprints made for connecting and reading from Arduino, and the matinee made with the current example of it working using the 'g' key. What do I need to do to connect the two parts I have?

Do I need branch nodes? Where do I connect to play matinee actor? alt text

Product Version: UE older version
screenshot (1).png (400.0 kB)
more ▼

asked Oct 27 '16 at 12:46 PM in Blueprint Scripting

avatar image


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

1 answer: sort voted first

I don't have an arduino connected to my Project, therefor I cannot use the exact same nodes, but this should be clear enough.

Assuming your arduino is printing integer numbers, then you can convert the string to int, then compare it. Since the value of the sensor might change quickly, and it's hard for the user to press G at the exact same moment, you can add a delay that will leave the gate open for a small while, giving the use a bigger window to trigger the matinee.

alt text

capture.png (94.7 kB)
more ▼

answered Oct 27 '16 at 01:16 PM

avatar image

Night Watcher
1.7k 43 12 71

(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