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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Designing a Flow Charge Up Macro

I am looking to create a macro that has the following characteristics:

  1. A continuous flow input that is (somewhere in the body of the macro) prevented from passing to output until a specified time has passed (essentially a charge up mechanism). Interruption of the continuous flow (for a single frame or more) is to immediately reset the charge of the macro to zero.

  2. A pulse input that, when fired, will reset the charge to zero.

  3. A variable output that indicates the charge of the macro (0.00 means the "timer" hasn't started while 1.00 means the "timer" has finished).

I'm no programmer so I may be going about this completely the wrong way, but so far I have created the following macro which, in simple cases, works:

alt text

Essentially, the local float acts as the timer with the flow input continuously checking to see if it can pass through to the output while also updating the local float.

The main issue I have is in resetting the local float back to zero once the flow stops. Currently I have an On Flow Stop macro that looks like this:

alt text

It's not pretty, but in theory, the retriggerable delay is supposed to reset every frame (assuming a stable framerate), and will only fire its output once the input flow has ceased.

While this all works in simple situations, if I convert it to macro form, and call it more than a handful of times it seems to run into issues with the retriggerable delay not firing at all.

So I was wondering if there was a more effective way of creating an "On Flow Stop" macro or if there is a better way of going about creating this macro.

Any ideas?

Product Version: UE 4.13
capture.png (149.2 kB)
capture2.png (53.8 kB)
more ▼

asked Oct 27 '16 at 04:53 AM in Blueprint Scripting

avatar image

1 2 2

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

0 answers: sort voted first
Be the first one to answer this question
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