# Creating a Speed Modifier?

**URL:** <https://forums.unrealengine.com/t/creating-a-speed-modifier/20757>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [February 10, 2015, 4:44pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757 "2015-02-10T16:44:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 10, 2015, 4:44pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/1 "2015-02-10T16:44:54Z")

</div>

My goal is to make my player character speed up for a few seconds when he runs through a small box volume . Does anyone know how to change the players speed through Blueprint using a box volume to trigger the increase/decrease? The image represents the mesh I am using as the Speed Booster.

---

<div class="post-metadata">

**Author:** ![ULLS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ULLS](https://forums.unrealengine.com/u/ULLS)\
**Post date:** [February 10, 2015, 4:58pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/2 "2015-02-10T16:58:28Z")

</div>

You can use the ‘SetMaxWalkSpeed’ node, this is accessible from the character movement component…so you could create begin & end overlap events for the box volume and when the events are triggered you could call: get player character → character Movement → set max walk speed. I hope this helps 😃

---

<div class="post-metadata">

**Author:** ![ULLS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ULLS](https://forums.unrealengine.com/u/ULLS)\
**Post date:** [February 10, 2015, 5:02pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/3 "2015-02-10T17:02:48Z")

</div>

It might be worth trying out the ‘Launch Character’ node too, this might give you the desired effect.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 10, 2015, 6:11pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/4 "2015-02-10T18:11:30Z")

</div>

Hey thanks! I figured it out and got it working pretty nicely 😃

 ![SpeedBooster_BP.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/8/38d7cbfc915837f33cce1f8ab67e2698834e68b5.jpeg)

> [@ULLS;219590](#):
>
> You can use the ‘SetMaxWalkSpeed’ node, this is accessible from the character movement component…so you could create begin & end overlap events for the box volume and when the events are triggered you could call: get player character -\> character Movement -\> set max walk speed. I hope this helps 😃

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 10, 2015, 10:36pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/5 "2015-02-10T22:36:02Z")

</div>

Okay, running into a snag now…I have it so the character speeds up upon entering the speed booster…but…is there a way I can piggy back one speed booster to another? Meaning…is there a way to allow the character to increase his speed even more if he still has time from the previous speed boost and makes it to another? Almost like a reset of time on the speed boost but also increasing the speed a little more. Does the way I am wording the question make sense? I apologize…I have been up since very early working in UE4.

---

<div class="post-metadata">

**Author:** ![ULLS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ULLS](https://forums.unrealengine.com/u/ULLS)\
**Post date:** [February 11, 2015, 11:18am UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/6 "2015-02-11T11:18:00Z")

</div>

I would have a base speed set as a variable, then a boost speed variable, then add it to your original speed. This way you could add it again and again and again…while easily being able to return to the base speed when the boost time has finished.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 11, 2015, 3:28pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/7 "2015-02-11T15:28:27Z")

</div>

Do you mean a speed variable independent of the default MyCharacter Speed? What I would like to do is set it up so that the moment the character enters the speedbooster he has a set amount of time before the speed boost ends but if he enters another speedbooster the time is extended. This is what I have so far but depending on how I wire the true false branch the character will either run fast indefinitely or only for the allotted time…

 ![SpeedBooster_BP_wip.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/8/08a39160550e4a9b48d8c6250a209fd6e9729071.jpeg)

---

<div class="post-metadata">

**Author:** ![ULLS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ULLS](https://forums.unrealengine.com/u/ULLS)\
**Post date:** [February 11, 2015, 4:05pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/8 "2015-02-11T16:05:34Z")

</div>

Oh, I see…one way to do this is to use a timer instead of a delay, it has a ‘clear timer’ node that can be called. There’s probably other ways to do this though, look into using the Event Tick node’s ‘delta seconds’

I hope this helps

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 12, 2015, 9:21pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/9 "2015-02-12T21:21:19Z")

</div>

> [@ULLS;220255](#):
>
> Oh, I see…one way to do this is to use a timer instead of a delay, it has a ‘clear timer’ node that can be called. There’s probably other ways to do this though, look into using the Event Tick node’s ‘delta seconds’
> 
> I hope this helps

Ah, thanks! I am going to try and put this into my blueprint now and see if I can get it to work. Thank you very much!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 13, 2015, 11:39pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/10 "2015-02-13T23:39:08Z")

</div>

Ah man no luck so far…I am just going through the motions trying to see what will get the result I want but am still having no luck! Is it possible for you to show me how you would link it up? When I connect the timer I get nothing to happen…however when I use the delay it at least works with the delayed time…although as I’ve stated I want the player to have the ability to (if he makes it in time) be able to extend the effect by going through another speedbooster.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 14, 2015, 2:45pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/11 "2015-02-14T14:45:31Z")

</div>

I have tried all these variations with but the delay is the only one that actually makes the speedbooster change the player max walk speed. Should I be using entirely different nodes? The objective is to increase player speed upon entry into the speed volume (speedbooster) lasting 5 seconds before returning to the base speed unless the character runs through another speed volume (speedbooster) before the 5 seconds runs out upon which time an additional 5 seconds will be added…and so forth until it runs out. I can’t seem to get the time to add…as it stands now…the only way the player can receive a boost is to let the time run completely out and then enter another speed volume (speedbooster). Any suggestions? I know the answer is staring me right in my face 😕

 ![SpeedBooster_BP.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/8/38d7cbfc915837f33cce1f8ab67e2698834e68b5.jpeg)  
 ![SpeedBooster_BP_wip.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/8/08a39160550e4a9b48d8c6250a209fd6e9729071.jpeg)  
 ![SpeedBooster_BP_wip2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/e/ae71a0d46ff4ffc0a6d17c461deee595006d89ab.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 15, 2015, 3:11pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/12 "2015-02-15T15:11:59Z")

</div>

Does anyone have any suggestions?

---

<div class="post-metadata">

**Author:** ![ULLS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ULLS](https://forums.unrealengine.com/u/ULLS)\
**Post date:** [February 16, 2015, 9:57am UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/13 "2015-02-16T09:57:46Z")

</div>

Hi GameHatcher, did you not have any luck with the timer? The image you posted is quite low resolution but it looks like you are using it incorrectly. You should create a function that set’s the speed and use the timer to call the function. Remember, it is not a delay and works by calling a function after the time specified not by delaying the BP flow.

So, in your blueprint, move the last set speed variable node into a function instead of calling it directly after the ‘SetTimer’ node. You’ll then need to type the name of the function into the ‘SetTimer’ node rather than the name of the variable.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 16, 2015, 10:24pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/14 "2015-02-16T22:24:39Z")

</div>

> [@ULLS;222815](#):
>
> Hi GameHatcher, did you not have any luck with the timer? The image you posted is quite low resolution but it looks like you are using it incorrectly. You should create a function that set’s the speed and use the timer to call the function. Remember, it is not a delay and works by calling a function after the time specified not by delaying the BP flow.
> 
> So, in your blueprint, move the last set speed variable node into a function instead of calling it directly after the ‘SetTimer’ node. You’ll then need to type the name of the function into the ‘SetTimer’ node rather than the name of the variable.

Thank you. I will try that…sorry for my lack of understanding.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 17, 2015, 2:01am UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/15 "2015-02-17T02:01:39Z")

</div>

> [@ULLS;222815](#):
>
> Hi GameHatcher, did you not have any luck with the timer? The image you posted is quite low resolution but it looks like you are using it incorrectly. You should create a function that set’s the speed and use the timer to call the function. Remember, it is not a delay and works by calling a function after the time specified not by delaying the BP flow.
> 
> So, in your blueprint, move the last set speed variable node into a function instead of calling it directly after the ‘SetTimer’ node. You’ll then need to type the name of the function into the ‘SetTimer’ node rather than the name of the variable.

Hello ULLS,

Is this the setup

 ![SpeedBooster_BP_wip3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/0/b00c34f99ff12a775fe87d31140b80aac633352e.jpeg)

If not can you tell me what I’m missing? It’s not working, but I know it can. If I figure it out before you reply I will repost what I discovered. Thanks again for your help!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 17, 2015, 3:06am UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/16 "2015-02-17T03:06:56Z")

</div>

What I would like to know is what a function would look like that is made to update (change) MyCharacter Speed? I believe that if I can create the correct function I could just use it with an Event Tick and a Branch to get the result I want…right?

---

<div class="post-metadata">

**Author:** ![ULLS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ULLS](https://forums.unrealengine.com/u/ULLS)\
**Post date:** [February 17, 2015, 9:26am UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/17 "2015-02-17T09:26:54Z")

</div>

Hi GameHatcher, you shouldn’t need to wire anything after the ‘Set Timer’ node, but instead set the speed variable inside the ‘Character Speed Burst’ function. The timer will handle the calling of the function, therefore you don’t need to wire this up. If I get some time this evening I will grab a screen shot explaining this in more detail.

---

<div class="post-metadata">

**Author:** ![ULLS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ULLS](https://forums.unrealengine.com/u/ULLS)\
**Post date:** [February 17, 2015, 9:43am UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/18 "2015-02-17T09:43:55Z")

</div>

The actual function should be something like this: (get character) -\> (character movement) -\> (set max walk speed 600). You’ll also probably want to track the remaining time so you can add it to the timer, this could be done in the main graph after the overlap event like: (set max walk speed 2000) -\> (get timer remaining time) -\> (store remaining time in a variable) -\> (clear timer) -\> (set timer) passing in the desired time + the remaining time that you stored in the variable.

---

<div class="post-metadata">

**Author:** ![ULLS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ULLS](https://forums.unrealengine.com/u/ULLS)\
**Post date:** [February 17, 2015, 9:50am UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/19 "2015-02-17T09:50:06Z")

</div>

Actually, you’ll probably need a branch node too that checks against a ‘TimerExists’ node where the output of true is: (set max walk speed 2000) -\> (get timer remaining time) -\> (store remaining time in a variable) -\> (clear timer) -\> (set timer) and the output of false is: (set max walk speed 2000) -\> (set timer)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4721da8d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4721da8d](https://forums.unrealengine.com/u/anonymous_user_4721da8d)\
**Post date:** [February 17, 2015, 6:21pm UTC](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757/20 "2015-02-17T18:21:49Z")

</div>

> [@ULLS;223363](#):
>
> The actual function should be something like this: (get character) -\> (character movement) -\> (set max walk speed 600). You’ll also probably want to track the remaining time so you can add it to the timer, this could be done in the main graph after the overlap event like: (set max walk speed 2000) -\> (get timer remaining time) -\> (store remaining time in a variable) -\> (clear timer) -\> (set timer) passing in the desired time + the remaining time that you stored in the variable.

Hello ULLS,

Does this look about right for the function?

 ![SpeedBooster_BP_wip5.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/f/cf32339115270e50860a2953b664efbc7335f2f8.jpeg)

[Next page](https://forums.unrealengine.com/t/creating-a-speed-modifier/20757.md?page=2)
