# SetTimer not working

**URL:** <https://forums.unrealengine.com/t/settimer-not-working/472148>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [October 1, 2020, 6:06am UTC](https://forums.unrealengine.com/t/settimer-not-working/472148 "2020-10-01T06:06:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![firo1738](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@firo1738](https://forums.unrealengine.com/u/firo1738)\
**Post date:** [October 1, 2020, 6:06am UTC](https://forums.unrealengine.com/t/settimer-not-working/472148/1 "2020-10-01T06:06:14Z")

</div>

I am trying to make an auto fire gun using TimerManager to make the loop, but its not working at all, no errors nothing, just simply doesn’t work, please someone help , i tried 3 different versions of ue4 and tried it on several projects it didn’t work at all, just call the fire method once a click that’s it, i really need help please.  
thank you in advance.

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [October 1, 2020, 2:09pm UTC](https://forums.unrealengine.com/t/settimer-not-working/472148/2 "2020-10-01T14:09:13Z")

</div>

What exactly is not working? The loop, the timer, …?

What have you do so far?

---

<div class="post-metadata">

**Author:** ![firo1738](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@firo1738](https://forums.unrealengine.com/u/firo1738)\
**Post date:** [October 1, 2020, 2:17pm UTC](https://forums.unrealengine.com/t/settimer-not-working/472148/3 "2020-10-01T14:17:43Z")

</div>

Its the loop, not working at all, so as i explained earlier i am trying to make an auto fire weapon with settimer. it still shoots single bullet on click that’s it and doesn’t loop it, i tried searching allover, tried so many tutorials, the code is correct it doesn’t show any errors, i set both pressed and released actions made settimer and cleartimer in different functions, but nothing, i am really in a pickle here.

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [October 1, 2020, 3:11pm UTC](https://forums.unrealengine.com/t/settimer-not-working/472148/4 "2020-10-01T15:11:36Z")

</div>

It would be a lot fast and easier if you show the code.

Have you set _InbLoop_ = true? For example:

```
GetWorldTimerManager().SetTimer(MyTimerHandler, this, &ASomeActor::SomeFunc, 2.0f, true);
```

---

<div class="post-metadata">

**Author:** ![firo1738](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@firo1738](https://forums.unrealengine.com/u/firo1738)\
**Post date:** [October 1, 2020, 3:20pm UTC](https://forums.unrealengine.com/t/settimer-not-working/472148/5 "2020-10-01T15:20:23Z")

</div>

yes i did set it to true

 ![316784-annotation-2020-10-01-204821.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/5/af59817b3819b019f3ff4593999b1492ee0658ed.png)

---

<div class="post-metadata">

**Author:** ![EvilCleric](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@EvilCleric](https://forums.unrealengine.com/u/EvilCleric)\
**Post date:** [October 1, 2020, 3:44pm UTC](https://forums.unrealengine.com/t/settimer-not-working/472148/6 "2020-10-01T15:44:03Z")

</div>

0.f? How about giving it some time between calls?

---

<div class="post-metadata">

**Author:** ![firo1738](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@firo1738](https://forums.unrealengine.com/u/firo1738)\
**Post date:** [October 2, 2020, 9:41am UTC](https://forums.unrealengine.com/t/settimer-not-working/472148/7 "2020-10-02T09:41:59Z")

</div>

ok, yea i tried it , nothing, guess time to change profession for me, thank you anyway for you help, really appreciate it.

---

<div class="post-metadata">

**Author:** ![firo1738](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@firo1738](https://forums.unrealengine.com/u/firo1738)\
**Post date:** [October 2, 2020, 11:01am UTC](https://forums.unrealengine.com/t/settimer-not-working/472148/8 "2020-10-02T11:01:15Z")

</div>

Hey, just wanted to update and thank you, it suddenly started working, idk how or what happened, but its working now so thank you once again.
