# Flashlight doesn't move vertically in multiplayer

**URL:** <https://forums.unrealengine.com/t/flashlight-doesnt-move-vertically-in-multiplayer/307249>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [February 17, 2015, 9:10pm UTC](https://forums.unrealengine.com/t/flashlight-doesnt-move-vertically-in-multiplayer/307249 "2015-02-17T21:10:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![LucasMarqs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LucasMarqs](https://forums.unrealengine.com/u/LucasMarqs)\
**Post date:** [February 17, 2015, 9:10pm UTC](https://forums.unrealengine.com/t/flashlight-doesnt-move-vertically-in-multiplayer/307249/1 "2015-02-17T21:10:07Z")

</div>

Hi there,  
i have made a very simple flashlight by attaching a SpotLight to the FirstPersonCamera and toggling it with the mouse button. But the light does not follow the player mouse y input from a third perspective.

 ![30266-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/d/9dd889fe8bf7a4c07d12ff4f4d0a71a10dd753bf.png)

 ![30267-2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/4/a84bab2fa0a54e32d224603f0e185264c0d43e91.jpeg)

 ![30268-3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/a/e/bae3dfadf38078543bebc31191f10bcc2653da02.jpeg)

---

<div class="post-metadata">

**Author:** ![LucasMarqs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LucasMarqs](https://forums.unrealengine.com/u/LucasMarqs)\
**Post date:** [February 22, 2015, 9:54pm UTC](https://forums.unrealengine.com/t/flashlight-doesnt-move-vertically-in-multiplayer/307249/2 "2015-02-22T21:54:32Z")

</div>

Hi, answering my own question here:

 ![30754-5.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/a/2bad91da95b1fc2cd6773f370bf59b51e98f4bfc.png)

It goes like this:

1. Get mouse Input for Y =\> Run on  
server function with rotator  
reference =\>

2. Run on server function with rotator  
reference =\> Multicast Function with  
rotator reference =\>

3. Multicast Function with rotator  
reference =\> Set World rotation to  
flashlight

It’s a little glitchy, but it will work for now…

In the near future i will attach a socket to the mesh hand and make a

aim offset for it. I hope it will change the SpotLight rotation :S

---

<div class="post-metadata">

**Author:** ![AudiDJ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AudiDJ](https://forums.unrealengine.com/u/AudiDJ)\
**Post date:** [May 14, 2019, 1:49am UTC](https://forums.unrealengine.com/t/flashlight-doesnt-move-vertically-in-multiplayer/307249/3 "2019-05-14T01:49:21Z")

</div>

I know I’m 4 years late, but I found that when setting the rotation as the spotlight, it constantly flashes on the client’s side. So I fixed this by referencing the player’s Follow Camera and it seemed to work. Hope this may help someone in the future!

---

<div class="post-metadata">

**Author:** ![SeamD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SeamD](https://forums.unrealengine.com/u/SeamD)\
**Post date:** [September 24, 2020, 11:41pm UTC](https://forums.unrealengine.com/t/flashlight-doesnt-move-vertically-in-multiplayer/307249/4 "2020-09-24T23:41:42Z")

</div>

hi AuditDJ can you send photo? how you repair it

---

<div class="post-metadata">

**Author:** ![SeamD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SeamD](https://forums.unrealengine.com/u/SeamD)\
**Post date:** [September 24, 2020, 11:42pm UTC](https://forums.unrealengine.com/t/flashlight-doesnt-move-vertically-in-multiplayer/307249/5 "2020-09-24T23:42:08Z")

</div>

Can you send photo how you repair it

---

<div class="post-metadata">

**Author:** ![Jimbo\_Des](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbo_des/32/617285_2.png) [@Jimbo\_Des](https://forums.unrealengine.com/u/Jimbo_Des)\
**Post date:** [July 26, 2022, 6:05pm UTC](https://forums.unrealengine.com/t/flashlight-doesnt-move-vertically-in-multiplayer/307249/6 "2022-07-26T18:05:33Z")

</div>

@ [LucasMarqs](https://forums.unrealengine.com/u/LucasMarqs)  
[Profile - LucasMarqs - Unreal Engine Forums](https://forums.unrealengine.com/u/LucasMarqs))Thank you, buddy! I understand that many years have passed, but you have helped me a lot.
