# Increasing attack speed mid game

**URL:** <https://forums.unrealengine.com/t/increasing-attack-speed-mid-game/1243933>\
**Category:** Blueprint\
**Tags:** UE-5, unreal-engine, Blueprint, question\
**Created:** [July 29, 2023, 3:52pm UTC](https://forums.unrealengine.com/t/increasing-attack-speed-mid-game/1243933 "2023-07-29T15:52:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Meshii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Meshii](https://forums.unrealengine.com/u/Meshii)\
**Post date:** [July 29, 2023, 3:52pm UTC](https://forums.unrealengine.com/t/increasing-attack-speed-mid-game/1243933/1 "2023-07-29T15:52:08Z")

</div>

I’m attempting to create a Vampire Survivors-esque mechanic where after a certain number of kills, a menu pops up where you can increase the players stats. I’ve got this working with movement speed and I’m trying to implement it with attack speed but with the way my attacking is set up, the attack speed is baked in at “Begin play” and I was wondering if there was a way I could alter this code to allow my Attack Speed float to be altered in game.

 ![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/4/c94836fa6e1b1f5a652a1ff164c6e782f88cc905.png)

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [July 29, 2023, 3:58pm UTC](https://forums.unrealengine.com/t/increasing-attack-speed-mid-game/1243933/2 "2023-07-29T15:58:00Z")

</div>

You have the timer handle. You can cancel that timer, and set a new timer, with a different interval, bound to the same action event.

An alternative is that you don’t set the looping flag, and instead set a new timer each time the timer fires, based on whatever the value is at that time.

---

<div class="post-metadata">

**Author:** ![Meshii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Meshii](https://forums.unrealengine.com/u/Meshii)\
**Post date:** [July 29, 2023, 4:01pm UTC](https://forums.unrealengine.com/t/increasing-attack-speed-mid-game/1243933/3 "2023-07-29T16:01:48Z")

</div>

The second option sounds like it could work pretty well, how would you go about setting that up? I’m very new to timers.

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [July 29, 2023, 4:45pm UTC](https://forums.unrealengine.com/t/increasing-attack-speed-mid-game/1243933/4 "2023-07-29T16:45:15Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/a/d5a75efe25bd62de17fe54b7d659f36549225ef3.png)

---

<div class="post-metadata">

**Author:** ![Meshii](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Meshii](https://forums.unrealengine.com/u/Meshii)\
**Post date:** [July 29, 2023, 4:50pm UTC](https://forums.unrealengine.com/t/increasing-attack-speed-mid-game/1243933/5 "2023-07-29T16:50:56Z")

</div>

That has worked absolutely perfectly, thank you so much!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 28, 2023, 4:51pm UTC](https://forums.unrealengine.com/t/increasing-attack-speed-mid-game/1243933/6 "2023-08-28T16:51:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
