# Create a custom event tick based on milliseconds

**URL:** <https://forums.unrealengine.com/t/create-a-custom-event-tick-based-on-milliseconds/347739>\
**Category:** Blueprint\
**Tags:** timers, timer, unreal-engine, Blueprint, CPP, question\
**Created:** [February 17, 2016, 10:01am UTC](https://forums.unrealengine.com/t/create-a-custom-event-tick-based-on-milliseconds/347739 "2016-02-17T10:01:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![antithing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@antithing](https://forums.unrealengine.com/u/antithing)\
**Post date:** [February 17, 2016, 10:01am UTC](https://forums.unrealengine.com/t/create-a-custom-event-tick-based-on-milliseconds/347739/1 "2016-02-17T10:01:52Z")

</div>

Hi, I need to run a function that updates independent of frame rate. Basically, to recreate the Blueprint ‘Event Tick’ but run it per 20 milliseconds, for example, instead of per frame.

I found:

```
 World->GetTimerManager().SetTimer(SampleTimerHandle, this, &AMyCharacter::SampleTimerExpired, 10.0f);  

```

Which ticks every 10 seconds, but how can I get a function like this into a blueprint, at the start of the Exec chain?

Thanks.

---

<div class="post-metadata">

**Author:** ![antithing](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@antithing](https://forums.unrealengine.com/u/antithing)\
**Post date:** [February 17, 2016, 1:56pm UTC](https://forums.unrealengine.com/t/create-a-custom-event-tick-based-on-milliseconds/347739/2 "2016-02-17T13:56:19Z")

</div>

Aha, solved. Replacing the EventTick with this seems to work.

 ![78874-tick.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/1/ba17db6ff1158a7f5d79253ad7cbc3b9384caaf7.png)
