# Problem with Line Trace/Sphere Trace Fires in All Clients??

**URL:** <https://forums.unrealengine.com/t/problem-with-line-trace-sphere-trace-fires-in-all-clients/2311700>\
**Category:** Multiplayer & Networking\
**Tags:** Raycast, custom-event, line-trace, client, raycasting, hit-detection, detection, unreal-engine, Multiplayer, question\
**Created:** [January 31, 2025, 12:34pm UTC](https://forums.unrealengine.com/t/problem-with-line-trace-sphere-trace-fires-in-all-clients/2311700 "2025-01-31T12:34:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAT\_Official](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rat_official/32/1000690_2.png) [@RAT\_Official](https://forums.unrealengine.com/u/RAT_Official)\
**Post date:** [January 31, 2025, 12:34pm UTC](https://forums.unrealengine.com/t/problem-with-line-trace-sphere-trace-fires-in-all-clients/2311700/1 "2025-01-31T12:34:44Z")

</div>

Even though, i am running Custom Event “Run on owning Client”… it somehow runs on both other clients and server

 ![Server vs Client View](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/0/5801ddc139a335bab45febcad7d7f5013104085b.jpeg)  
 ![Blueprint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/e/48eb54b367749488de0c4347cab2b177da3a3e6c.png)  
Somehow, other clients interact with other clients??

i mean in a way :

- Server : Works normal, only 1 Cast
- Clients : Server + All Clients??

even though it is supposed to run on only own client  
I have also tried “Run under One Process” Enabled/Disabled :

- Same results

Unreal Engine 5.5.2

---

<div class="post-metadata">

**Author:** ![RAT\_Official](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rat_official/32/1000690_2.png) [@RAT\_Official](https://forums.unrealengine.com/u/RAT_Official)\
**Post date:** [January 31, 2025, 12:54pm UTC](https://forums.unrealengine.com/t/problem-with-line-trace-sphere-trace-fires-in-all-clients/2311700/2 "2025-01-31T12:54:39Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/4/184b1d34b015d8958d1f35da57d59eef0fdb6970.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/8/bb882a7b2842b84461e84b6c9043117edc230e49.png)

Ok.

Solution?  
Event Tick → Branch (Condition: Is Locally Controlled?)  
├ True → Run Trace  
└ False → Do Nothing

Solved.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 2, 2025, 12:55pm UTC](https://forums.unrealengine.com/t/problem-with-line-trace-sphere-trace-fires-in-all-clients/2311700/3 "2025-03-02T12:55:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
