# Speed Increment while ADS

**URL:** <https://forums.unrealengine.com/t/speed-increment-while-ads/473261>\
**Category:** Character & Animation\
**Tags:** sprint, aiming, unreal-engine, question\
**Created:** [October 21, 2020, 4:33pm UTC](https://forums.unrealengine.com/t/speed-increment-while-ads/473261 "2020-10-21T16:33:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrProvie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrProvie](https://forums.unrealengine.com/u/MrProvie)\
**Post date:** [October 21, 2020, 4:33pm UTC](https://forums.unrealengine.com/t/speed-increment-while-ads/473261/1 "2020-10-21T16:33:31Z")

</div>

Hello, Ive run into another problem. Thanks to the awesome member “EVERYONE” here, I have this script to disable sprint while ads. In the meantime, Ive gotten a code to work, that lets me increase or decrease walk speed with my thumb mouse buttons, however, while ADS, I can get walk speed up to sprint, negating my disable sprint to ads functions. is there a way to limit the speed increment while ADS but have full increment while not ADS. Sorry if this doesnt make sense!  
Any help would be greatly appreciated. \<3

 ![319526-variablespeed.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/7/8c76f469b96280dbd881e7807ae04eab3a42251a.png)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [October 21, 2020, 5:19pm UTC](https://forums.unrealengine.com/t/speed-increment-while-ads/473261/2 "2020-10-21T17:19:01Z")

</div>

Same principles apply.

On ADS input, check if you can ADS, determine stance (standing, crouched, prone), set max walk speed, do ADS stuff.

---

<div class="post-metadata">

**Author:** ![MrProvie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrProvie](https://forums.unrealengine.com/u/MrProvie)\
**Post date:** [October 21, 2020, 6:00pm UTC](https://forums.unrealengine.com/t/speed-increment-while-ads/473261/3 "2020-10-21T18:00:24Z")

</div>

How do you say “Can ADS?” vs “Is ADS” and what determines the difference? are they both just simple booleans? I appreciate your response, and sorry if this is a simple question. And I only ask this because I can always ADS.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [October 21, 2020, 6:25pm UTC](https://forums.unrealengine.com/t/speed-increment-while-ads/473261/4 "2020-10-21T18:25:28Z")

</div>

Depends on the rules of your game. In mine I can’t ads if sprinting, falling, swimming etc.

In general can ads refers to checking against game rules that wouldn’t allow you to ads.
