# Actor component's variable is not replicated if change value function/event was triggered from another object

**URL:** <https://forums.unrealengine.com/t/actor-components-variable-is-not-replicated-if-change-value-function-event-was-triggered-from-another-object/366746>\
**Category:** Multiplayer & Networking\
**Tags:** Replication, unreal-engine, Multiplayer, bug-report, Components, question\
**Created:** [August 10, 2016, 8:01pm UTC](https://forums.unrealengine.com/t/actor-components-variable-is-not-replicated-if-change-value-function-event-was-triggered-from-another-object/366746 "2016-08-10T20:01:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2d354504](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2d354504](https://forums.unrealengine.com/u/anonymous_user_2d354504)\
**Post date:** [August 10, 2016, 8:01pm UTC](https://forums.unrealengine.com/t/actor-components-variable-is-not-replicated-if-change-value-function-event-was-triggered-from-another-object/366746/1 "2016-08-10T20:01:44Z")

</div>

To reproduce:

1. Create an actor component and attach it to your character

2. In the Actor component class create a variable of any type and set replication to “Replicated”

3. In the Actor component create a function or event which “sets” variable value to any different from initial

4. In the Actor class add that Actor componetn

5. In the Actor class bind a button to trigger the event, which is set to “Run on server” and triggers the function/event of actor component to change actor component’s variable value

6. Start a game and press that button

7. Observe the actor component value

Actual result: Value is changed on server, but not updated on client

 ![102362-replbugblue.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/0/150575ed1fc400f189f27eb8547773f6471bce48.png)

![102363-replbuglog.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/2/0/d20bcd8deaa176422f75081d7cbed138c9313f70.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [August 10, 2016, 9:12pm UTC](https://forums.unrealengine.com/t/actor-components-variable-is-not-replicated-if-change-value-function-event-was-triggered-from-another-object/366746/2 "2016-08-10T21:12:42Z")

</div>

Hello ARG\_ON,

After looking over your report, I have found that this is working as intended. The actor component needs to be set to replicate. I have provided an example below. I have also provided a link to the public tracker that has a report that was submitted for this feature to exposed to in the class defaults for actor components.

Link: [Unreal Engine Issues and Bug Tracker (UE-34433)](https://issues.unrealengine.com/issue/UE-34433)

Example:

![102364-componentrephelp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/5/02574fa0b861d684f60a4cdb1ab743dcdffe26d5.png)

Make it a great day
