# Why this actor replication response is not constant?

**URL:** <https://forums.unrealengine.com/t/why-this-actor-replication-response-is-not-constant/1588996>\
**Category:** Programming & Scripting\
**Tags:** Networking, Replication, actor-location, unreal-engine, question\
**Created:** [January 5, 2024, 12:02am UTC](https://forums.unrealengine.com/t/why-this-actor-replication-response-is-not-constant/1588996 "2024-01-05T00:02:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drugox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Drugox](https://forums.unrealengine.com/u/Drugox)\
**Post date:** [January 5, 2024, 12:02am UTC](https://forums.unrealengine.com/t/why-this-actor-replication-response-is-not-constant/1588996/1 "2024-01-05T00:02:51Z")

</div>

Hey everyone,

I’m currently working on a project and I’m having trouble replicating the location of an actor.

[Video](https://youtu.be/SsYIJQG0ORo)

In the video, you’ll notice that the replication of the location starts midway the path of the actor, and if moved again, it becomes more responsive. However, if left alone for some seconds, it becomes unresponsive, much like in the beginning.

The code of the movent its the following

 ![UnrealEditor_cNMrVD9wV6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/1/6219ff311f3fc6219a9a6e9813d879beb74b0a62.png)

This part of the graph is the movement itself. First ti removes any trace of the Actor occupying the tile, then removes de displaying marker as a path tile and tells the actor that it is moving so the animgraph start playing the correct animation. All this works properly and replicates instantaneusly.

Then the importat happens, It set current location and the goal locations which is the adjacent tile anchor point location. Then on a timeline the actor moves from Tile A to Tile B over .3 seconds. When the timeline ends, it goes an tries to see if it got it the last tile or if it has to repeat the process to move to the next tile.

If anyone has experience with this or could point me in the right direction, I’d greatly appreciate it.

Thanks in advance for any help you can provide!

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [January 5, 2024, 5:11am UTC](https://forums.unrealengine.com/t/why-this-actor-replication-response-is-not-constant/1588996/2 "2024-01-05T05:11:20Z")

</div>

i think we’ll need to see the code on this

---

<div class="post-metadata">

**Author:** ![Drugox](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Drugox](https://forums.unrealengine.com/u/Drugox)\
**Post date:** [January 5, 2024, 5:11pm UTC](https://forums.unrealengine.com/t/why-this-actor-replication-response-is-not-constant/1588996/3 "2024-01-05T17:11:14Z")

</div>

Sorry for forgetting the image, here it is. I’ll edit the first post.

 ![UnrealEditor_cNMrVD9wV6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/1/6219ff311f3fc6219a9a6e9813d879beb74b0a62.png)

This part of the graph is the movement itself. First ti removes any trace of the Actor occupying the tile, then removes de displaying marker as a path tile and tells the actor that it is moving so the animgraph start playing the correct animation. All this works properly and replicates instantaneusly.

Then the importat happens, It set current location and the goal locations which is the adjacent tile anchor point location. Then on a timeline the actor moves from Tile A to Tile B over .3 seconds. When the timeline ends, it goes an tries to see if it got it the last tile or if it has to repeat the process to move to the next tile.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [January 6, 2024, 4:39am UTC](https://forums.unrealengine.com/t/why-this-actor-replication-response-is-not-constant/1588996/4 "2024-01-06T04:39:09Z")

</div>

so is that event running only on server as it should be?

im not sure what the toggleismoving is for but that should just be replicated not an RPC

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [January 6, 2024, 4:40am UTC](https://forums.unrealengine.com/t/why-this-actor-replication-response-is-not-constant/1588996/5 "2024-01-06T04:40:53Z")

</div>

also just double check your timeline isnt messed up, a weird curve could be causing this
