# In/Decrease Flashlight Intensity/Attenuation Issue

**URL:** <https://forums.unrealengine.com/t/in-decrease-flashlight-intensity-attenuation-issue/420297>\
**Category:** Blueprint\
**Tags:** how-to, unreal-engine, flashlight, UE4, Blueprint, question\
**Created:** [March 19, 2018, 10:06pm UTC](https://forums.unrealengine.com/t/in-decrease-flashlight-intensity-attenuation-issue/420297 "2018-03-19T22:06:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![four2nothin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@four2nothin](https://forums.unrealengine.com/u/four2nothin)\
**Post date:** [March 19, 2018, 10:06pm UTC](https://forums.unrealengine.com/t/in-decrease-flashlight-intensity-attenuation-issue/420297/1 "2018-03-19T22:06:24Z")

</div>

I’m having some trouble with a flashlight actor’s spot light not increasing and decreasing with the blueprint pictured below. I’ve used it on a different project where the flashlight was simply a spotlight attached to the player and it worked like a charm. What am I doing wrong?

I’m using ue4 v 4.18

 ![234362-flashlight-inten-atten.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/2/ef2bd7050ae05aa90bca28890cfb40e7ed86d367.jpeg)

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [March 19, 2018, 10:09pm UTC](https://forums.unrealengine.com/t/in-decrease-flashlight-intensity-attenuation-issue/420297/2 "2018-03-19T22:09:28Z")

</div>

Right off i see your not comparing your flot to anything

Other than that is you flashlight gettintg input?

---

<div class="post-metadata">

**Author:** ![four2nothin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@four2nothin](https://forums.unrealengine.com/u/four2nothin)\
**Post date:** [March 19, 2018, 10:18pm UTC](https://forums.unrealengine.com/t/in-decrease-flashlight-intensity-attenuation-issue/420297/3 "2018-03-19T22:18:44Z")

</div>

Hm, this is how I have it set up in my other project but I may have accidentally deleted the variable? Unfortunately I’ve not got a lot of experience with blueprints so I’m not quite sure what I’m missing

---

<div class="post-metadata">

**Author:** ![four2nothin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@four2nothin](https://forums.unrealengine.com/u/four2nothin)\
**Post date:** [March 19, 2018, 10:33pm UTC](https://forums.unrealengine.com/t/in-decrease-flashlight-intensity-attenuation-issue/420297/4 "2018-03-19T22:33:00Z")

</div>

Yes it does have input. The flashlight turns on and off as it should. I just can’t seem to get the intensity and attenuation to adjust. here is a picture of the other part of the bp.

 ![234363-flashlight-function.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/6/566eab386370d167e0cd9d6dd059d061c7f0add2.png)

---

<div class="post-metadata">

**Author:** ![four2nothin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@four2nothin](https://forums.unrealengine.com/u/four2nothin)\
**Post date:** [March 19, 2018, 10:33pm UTC](https://forums.unrealengine.com/t/in-decrease-flashlight-intensity-attenuation-issue/420297/5 "2018-03-19T22:33:26Z")

</div>

by default the “is light boolean” is set to true

---

<div class="post-metadata">

**Author:** ![four2nothin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@four2nothin](https://forums.unrealengine.com/u/four2nothin)\
**Post date:** [March 20, 2018, 5:13pm UTC](https://forums.unrealengine.com/t/in-decrease-flashlight-intensity-attenuation-issue/420297/6 "2018-03-20T17:13:36Z")

</div>

Any ideas by chance?

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [March 20, 2018, 9:26pm UTC](https://forums.unrealengine.com/t/in-decrease-flashlight-intensity-attenuation-issue/420297/7 "2018-03-20T21:26:18Z")

</div>

what have you tried thus far? have you tried substituting your mouse wheel event with a axis event? did you try putting a value for the compare float? when you try your blueprint what actually happens if anything?

also your bools seem backwards imo. your setting the light visibility to true but setting is light on to false that seems a bit backwards.
