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"

Event called 2 times during delay doesn't come to end

Hello, I've got this Actor blueprint that basically sets a black material to a Monitor when the event is fired and sets it back to the original after 2 seconds.

alt text The problem is that if I fire this event while the monitor is in the delay (so is shutted down), it doesn't come back to the original material and stays turned off forever.

Product Version: Not Selected
Tags:
screenshot-2.png (108.5 kB)
more ▼

asked Feb 08 '19 at 01:30 PM in Blueprint Scripting

avatar image

Steven991
25 1 1 1

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

1 answer: sort voted first

The Delay node ignores any input until it's finished counting. So if you call it again within those 2 seconds, nothing after the delay will happen for the second time.

more ▼

answered Feb 08 '19 at 01:35 PM

avatar image

Tuerer
1.8k 12 7 8

avatar image Steven991 Feb 08 '19 at 01:41 PM

Since I set "Is Active" to false when the sequence is running, this shouldnt prevent from delay being called again until it's finished (when it finish the variable comes back to True and the Branch should go again in True)

avatar image Tuerer Feb 08 '19 at 01:45 PM

No, that's just the Delay's nature. No matter what you do, you can't call the same Delay node again in the same actor until it's finished.

Edit: in your case I believe you cau use a Retriggerable Delay; it will only work the last time you call it.

avatar image Steven991 Feb 08 '19 at 02:52 PM

Retriggerable Delay was not working in my case. I managed to solve it by adding a variable called "Is running" that goes True when the event is fired and comes back to False when delay is finished, and outside the event won't fire if the variable "Is running" is still True, so the even't can't be called when a Delay inside is active. Thank you very much for the tips

(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