# Rotate light on hover to certain degrees level

**URL:** <https://forums.unrealengine.com/t/rotate-light-on-hover-to-certain-degrees-level/483756>\
**Category:** XR Development\
**Tags:** unreal-engine, rotate, question\
**Created:** [May 22, 2021, 4:19pm UTC](https://forums.unrealengine.com/t/rotate-light-on-hover-to-certain-degrees-level/483756 "2021-05-22T16:19:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikeymore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mikeymore](https://forums.unrealengine.com/u/Mikeymore)\
**Post date:** [May 22, 2021, 4:19pm UTC](https://forums.unrealengine.com/t/rotate-light-on-hover-to-certain-degrees-level/483756/1 "2021-05-22T16:19:01Z")

</div>

Hi, I have tried and searched a lot, but can’t get it working.  
I want to rotate a directional light on hover with the controller to a certain degrees.  
For instance start at 0 degrees and with hover on arrow left rotate till -90 degrees and stop there.  
And with hove over an arrow right rotate the way back till a maximum of + 90 degrees.

I have made 2 BP’s, but neither of them are working…

How can I set this up in a good way?  
Thanks in advance!

 ![339501-rotate-light-try-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/5/73555b410f126cf83fb3217e8ef6b31820ee832f.png)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 22, 2021, 4:44pm UTC](https://forums.unrealengine.com/t/rotate-light-on-hover-to-certain-degrees-level/483756/2 "2021-05-22T16:44:20Z")

</div>

Try

![339503-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/5/d35e7446565bc06c1013ce8b0ef8074950c67675.png)

---

<div class="post-metadata">

**Author:** ![Mikeymore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mikeymore](https://forums.unrealengine.com/u/Mikeymore)\
**Post date:** [May 22, 2021, 8:38pm UTC](https://forums.unrealengine.com/t/rotate-light-on-hover-to-certain-degrees-level/483756/3 "2021-05-22T20:38:22Z")

</div>

Thanks for the reply!

Tried that, but no luck… on a event tick the light rotates, but not on my BP for hover on an actor.

It’s not quite clear to me how to set a defined multiplier for the z rotation from -90 to +90 dregrees…

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 23, 2021, 8:15am UTC](https://forums.unrealengine.com/t/rotate-light-on-hover-to-certain-degrees-level/483756/4 "2021-05-23T08:15:46Z")

</div>

How about this?

 ![339543-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/6/e36177f21a133b6faa69f5fb2fe232ed3e560809.png)

---

<div class="post-metadata">

**Author:** ![Mikeymore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mikeymore](https://forums.unrealengine.com/u/Mikeymore)\
**Post date:** [May 23, 2021, 11:34am UTC](https://forums.unrealengine.com/t/rotate-light-on-hover-to-certain-degrees-level/483756/5 "2021-05-23T11:34:59Z")

</div>

Thanks a lot!!! That works for me.

The only thing I haven’t fixed yet is the fact, that the rotation control is set to a OnActorBeginOverlap for an arrow in my scene. When I hover over and hover over again the light rotates, but when I hold the controllers laserbeam in the arrow, it rotates only 1 degree and stops then.

How can I set this to repeat the function, so the light rotates +90/-90 degrees when pointing at the arrow (trigger)?

Thanks already!

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 23, 2021, 12:43pm UTC](https://forums.unrealengine.com/t/rotate-light-on-hover-to-certain-degrees-level/483756/6 "2021-05-23T12:43:21Z")

</div>

you either need to manage it with a loop, or use a cotinuous input, llike with character movement. not at machine right now, will come back…

---

<div class="post-metadata">

**Author:** ![Mikeymore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mikeymore](https://forums.unrealengine.com/u/Mikeymore)\
**Post date:** [May 23, 2021, 5:41pm UTC](https://forums.unrealengine.com/t/rotate-light-on-hover-to-certain-degrees-level/483756/7 "2021-05-23T17:41:22Z")

</div>

Ok thank you… I will wait for your explenation !

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 24, 2021, 8:32am UTC](https://forums.unrealengine.com/t/rotate-light-on-hover-to-certain-degrees-level/483756/8 "2021-05-24T08:32:15Z")

</div>

In addition, you need:

 ![339620-screenshot-3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/2/6/5261ec05cafb181c8c695578b558f836efde3c3c.png)

and, on the beginning of tick:

 ![339631-screenshot-4.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/4/7d453fe5121b57a0849ec67eea1b661bd7a28e56.png)

---

<div class="post-metadata">

**Author:** ![Mikeymore](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mikeymore](https://forums.unrealengine.com/u/Mikeymore)\
**Post date:** [May 24, 2021, 10:37am UTC](https://forums.unrealengine.com/t/rotate-light-on-hover-to-certain-degrees-level/483756/9 "2021-05-24T10:37:27Z")

</div>

Thanks again!! This is working for me!
