# How to replicate interaction?

**URL:** <https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610>\
**Category:** Blueprint\
**Tags:** Networking, linetrace, Replication, unreal-engine, question\
**Created:** [February 2, 2026, 3:38pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610 "2026-02-02T15:38:19Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sucram237](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sucram237](https://forums.unrealengine.com/u/Sucram237)\
**Post date:** [February 2, 2026, 3:38pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/1 "2026-02-02T15:38:19Z")

</div>

I’ve been working on a multiplayer project for a while now with knowledge that I’ve just been getting from forums and tutorials, so I’m quite the novice.

I currently am using a method for this that I got from another user on here who has helped me a lot but I’m running into a problem with this where changes aren’t replicated to the client, and the client cant interact with the object.

This is the code for the interaction and the event that fires off in the object when interacted:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/4/034c63235f7c0c477daf3994368190135dcea0ea.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/c/72c4820dd08888e73cf09882eb2affdfd613402c.png)

code inside the interactable object:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/0/47039a5fe7951c64cbf1f8d52215eff9f38e7737.png)

I cant get a video RN but basically what happens is the server player can interact with the interactable and change spotlight colour but the client literally does nothing when they interact with the object and they cant see the servers changes

---

<div class="post-metadata">

**Author:** ![KryogenicGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kryogenicgames/32/1201049_2.png) [@KryogenicGames](https://forums.unrealengine.com/u/KryogenicGames)\
**Post date:** [February 2, 2026, 8:50pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/2 "2026-02-02T20:50:53Z")

</div>

try repnotify, it might suit your needs. here is quick example how to use it

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/b/40b90731bffb54141ccef93a9a2e165d79b6cc1b.jpeg "RepNotify Explained with Practical Example | Part 2 | UE5 Multiplayer/Replication Tutorial | Kekdot") ](https://www.youtube.com/watch?v=gfXcIF5-CRU)

---

<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:** [February 2, 2026, 10:59pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/3 "2026-02-02T22:59:40Z")

</div>

You need to finish the tutorial. Part 2 goes into more detail and tweaks including the use of RepNotify.

---

<div class="post-metadata">

**Author:** ![Sucram237](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sucram237](https://forums.unrealengine.com/u/Sucram237)\
**Post date:** [February 3, 2026, 1:07pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/4 "2026-02-03T13:07:19Z")

</div>

Looking over both tutorials now and wanted to ask; does the code need to be set up any different? as I am using a listen client setup.

Main reason I ask is because the beginning of the tutorial says to make the interact only execute for clients and i assume that wouldn’t work for a listen server with a player acting as the server.

---

<div class="post-metadata">

**Author:** ![Sucram237](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sucram237](https://forums.unrealengine.com/u/Sucram237)\
**Post date:** [February 3, 2026, 4:04pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/5 "2026-02-03T16:04:24Z")

</div>

I’ve discovered that what’s happening is when the client player calls the RPC for the line trace the server trace is spawning from the hosting players (server) world location. still unsure of a fix though

---

<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:** [February 3, 2026, 4:14pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/6 "2026-02-03T16:14:56Z")

</div>

Check the comments in vid 1 & 2. Listen server is covered in a few.

---

<div class="post-metadata">

**Author:** ![Sucram237](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sucram237](https://forums.unrealengine.com/u/Sucram237)\
**Post date:** [February 4, 2026, 3:24pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/7 "2026-02-04T15:24:06Z")

</div>

Looked through the comments and didn’t really find much of use, the main problem that I’ve now identified is that the world location for the camera will always default to the hosting player’s camera location when it is called through the server.

There is only one time where this doesn’t happen and that’s by removing the authority check for world location entirely and just using the camera component’s world location. Problem with this is that it doesn’t update for the client when crouched, so when the client crouches the trace stays at standing height, this makes no sense because the players camera location is moved down around 50 units when crouched.

New code:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/9/ef9f73f11305e180f8bf22f5ddc59810f9168fe7.png)

Client problem:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/c/8/ec8f601706f4b2611d376046c89a0ec036590a2c.jpeg)

---

<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:** [February 4, 2026, 6:54pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/8 "2026-02-04T18:54:57Z")

</div>

On listen server the “Host” is also a client. The host will process input just as a normal client does. You have to consider this in your setup.

You can create a custom macro that works similar to Switch has Authority.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/e/6fe7770569b1220b85bfb006ae157f541c0af3c5.png)

* * *

Your above code needs to use Camera Manager → Camera Location as well.

Server proxies do not update the Camera “Components” location. This is why when crouched the traces are coming from the default location.

---

<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:** [February 4, 2026, 7:07pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/9 "2026-02-04T19:07:05Z")

</div>

Just for giggles here’s what the pre C++ translation BP looks like in a optimized setup.

- Interfaces are used for all data requests and action/event calls.
- Gameplay tags (C++ implementation) instead of actor tags.
- Interaction type Handler Functions.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/1/71108528c613c606e62d95dec8230db93a76e716.jpeg)

---

<div class="post-metadata">

**Author:** ![Sucram237](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sucram237](https://forums.unrealengine.com/u/Sucram237)\
**Post date:** [February 5, 2026, 3:58pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/10 "2026-02-05T15:58:56Z")

</div>

ok, I made a macro that checks the net role of the clients and now i get the world location by getting it from the player controller camera manager, new problem is that now it only uses the Client 0 (host)’s camera location no matter what client is interacting. I had this problem before and don’t know how to differentiate the two.

---

<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:** [February 5, 2026, 4:00pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/11 "2026-02-05T16:00:13Z")

</div>

Show your code.

Also what pie mode are you testing in?

---

<div class="post-metadata">

**Author:** ![Sucram237](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sucram237](https://forums.unrealengine.com/u/Sucram237)\
**Post date:** [February 5, 2026, 4:17pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/12 "2026-02-05T16:17:18Z")

</div>

video of the code and the problem, server window is the left one, the trace always starts at the server player location when using the player controller setup, as for the pie mode im just using the new window one (if thats what you mean, if you mean a debug mode i’m not using one)

---

<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:** [February 5, 2026, 4:28pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/13 "2026-02-05T16:28:33Z")

</div>

I’ll be in the office in roughly an hour… On mobile atm.

---

<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:** [February 5, 2026, 9:26pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/14 "2026-02-05T21:26:45Z")

</div>

There’s a few things funky in your setup.

First The Input logic flow does not need a switch check for host/client/authority. Only Clients or Host Client will process input.

**Correct setup** , regardless Listen or Dedicated.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/a/9fa005ada3c22944c416058573ea11dd33307cd1.png)

* * *

**Tweaking the Trace logic**

First you absolutely need a clean reference to the controller for the given proxy executing the trace logic. I have no clue what your approach is to getting a controller reference, but it should not be `Get Player Controller (index)`. Any node requiring a player index is for client-side only usage. They will always fail in a multiplayer game… Listen AND Dedicated.

You’re better off using `Get Controller` from the pawn class. This returns a generic `Controller` reference. From here you have 2 choices.

1. Cast the return to `Player Controller`, then get Player Camera Manager → Get Camera Location

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/3/813bbff91654549267986b604ae546666f592ee4.png)

1. [BETTER] Create an Interface for your controller and request the camera manager camera location data.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/7/697c8c9f3ddc78f083a8b7e6e92ea4f160db0b5d.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/b/30bef7e899696c1c20e4b8d3f9985f61c3751013.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/0/150df603b066f56c368734d9ad8c2bdedb62337b.png)

* * *

Finally the last sequence step…

Easiest approach is to swap the Switch has authority to a simple `Is Server Branch` check.

- If you’re the server you’ll go right to interaction.
- If you’re a client you’ll RPC the server to attempt interaction.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/e/c/fecc0d740f5099f0f80f2b77d663c17f4e6e352c.png)

The alternative Macro/Function approach involves defining each proxy and using a switch.

Example…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/a/80ad842a41cfdf237d6ada4132abe93ff8ab2bdc.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/1/131d5ab7de65256ddc2dbf9e97c5cd632915da3a.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/5/2c5723c199cbff6bda64e4e5f986a0916cdf4811.png)

* * *

As far as my previous question about PIE Mode…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/7/ca70bf2bb5aa205d8c3f5e281ba8618536e45ed4.jpeg)

---

<div class="post-metadata">

**Author:** ![Sucram237](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sucram237](https://forums.unrealengine.com/u/Sucram237)\
**Post date:** [February 7, 2026, 10:47pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/15 "2026-02-07T22:47:47Z")

</div>

This worked perfectly, didn’t realise that “Switch has authority” didn’t work in Listen server mode… but, now I know. Thanks so much!

---

<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:** [February 7, 2026, 11:03pm UTC](https://forums.unrealengine.com/t/how-to-replicate-interaction/2696610/16 "2026-02-07T23:03:14Z")

</div>

Switch has authority does work on a listen server environment in general. Where and how it’s used is key. Understanding that it’s looking for network authority which is always the server… Dedicated, or listen host.
