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. 

Delay node interrupts Event

Hey, I have this little Script alt text

when the event "DecreaseSpeedOverTime" is executet it prints:

Speed -25

(waits 0.75 sec)

Speed +25

all fine and good. The Problem is when this events gets executet two times in between 0.75 sec. Then it prints:

Speed - 25

Speed - 25

Speed + 25

the second Speed +25 is missing...

alt text

My Goal is that i decrease the speed of an Enemy every time i shoot it for some time, and the decreasement is stackable. Does Anyone has a solution for this problem?

Product Version: UE 4.10
ue4.jpg (75.6 kB)
ue4_02.jpg (98.0 kB)
more ▼

asked Feb 16 '16 at 04:43 PM in Blueprint Scripting

avatar image

3 1 4 3

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

2 answers: sort voted first

KerberusGames solution works, but it will not keep the timing at which the events occured. So if you press F, then F again after 0.1 seconds, the second event will be off after 1.5 seconds and not 0.85 seconds.

So here's a version that will keep the timing right.

The "ListOfDates" variable is of type DateTime and set as a list.

Hope this fits your need


  • Marc

alt text

more ▼

answered Feb 16 '16 at 09:21 PM

avatar image

710 27 12 40

avatar image Patinger Feb 16 '16 at 10:45 PM

yea thanks, i thought about something similar... but hoped it could be more simple. Thanks to you both! Will try this tomorrow but im sure this will do the job.

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

alt text

The example given simply uses a 'Counter' variable to check how many times In vs Out the full script has been fired and hold the remaining within the variable. *Then check if the variable is more than or equal to 1 (1 held execution), if so trigger the delay again. Storing the Counter in a variable will be useful if you want to make the number of held +25% executions affect the speed in which they are regained. Such as 10 held executions could divide the 0.75 delay to give a 10% faster recovery.

On delays: The basic delay will ignore any further executions until the delay has finished. The retriggerable delay will reset the delay timer with each execution.

untitled.jpg (233.1 kB)
more ▼

answered Feb 16 '16 at 08:08 PM

avatar image

Chika Wowwow
36 1 1 5

(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