# Cancel a delay already counting

**URL:** <https://forums.unrealengine.com/t/cancel-a-delay-already-counting/367467>\
**Category:** Asset Creation\
**Tags:** delay, ignore, branch, update, unreal-engine, question\
**Created:** [August 18, 2016, 3:05am UTC](https://forums.unrealengine.com/t/cancel-a-delay-already-counting/367467 "2016-08-18T03:05:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_623fd206](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_623fd206](https://forums.unrealengine.com/u/anonymous_user_623fd206)\
**Post date:** [August 18, 2016, 3:05am UTC](https://forums.unrealengine.com/t/cancel-a-delay-already-counting/367467/1 "2016-08-18T03:05:59Z")

</div>

Well, I ran into a small problem with delays not being breakable.

As you can see in the image, I am moving a static mesh from A (offscreen) to B (onscreen), making it wait 2 seconds, then moving it back to A.

The “branch” comes in when I click the mesh. Upon click it sets a bool (clicked popent) as true.  
When that bool is true, meaning I have clicked the mesh while is was in the B position (on screen), I want the mesh to instantly move offscreen (position A). Which is why the “Branch.True” goes directly to the second “setlocation”.

Problem is when I click on the mesh while the delay is active it doesn’t update to ignore it. It keeps counting to 2 seconds then continues.

What can I do to make that delay dynamic?

 ![103368-asdf.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/4/f/a4fb585009fc8009cb92776ccfbe822bf0ca3374.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_623fd206](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_623fd206](https://forums.unrealengine.com/u/anonymous_user_623fd206)\
**Post date:** [August 18, 2016, 1:34pm UTC](https://forums.unrealengine.com/t/cancel-a-delay-already-counting/367467/2 "2016-08-18T13:34:27Z")

</div>

Nevermind, a good night sleep gave me the solution. I used a delta seconds timer to branch the condition.

I also realized I had to split the second part and tie it into the “event tick” white line. So now I have 2 lines, tied togheter by a condition which waits for the timer to get to 2 seconds.

If anyone is interested in this let me know I can explain further.
