# \[REQUEST\] Replicate variable to everyone except the owner

**URL:** <https://forums.unrealengine.com/t/request-replicate-variable-to-everyone-except-the-owner/360580>\
**Category:** Feedback & Requests\
**Tags:** owner, multicast, unreal-engine, FeatureRequest, question\
**Created:** [June 13, 2016, 2:58am UTC](https://forums.unrealengine.com/t/request-replicate-variable-to-everyone-except-the-owner/360580 "2016-06-13T02:58:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_089a4978](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_089a4978](https://forums.unrealengine.com/u/anonymous_user_089a4978)\
**Post date:** [June 13, 2016, 2:58am UTC](https://forums.unrealengine.com/t/request-replicate-variable-to-everyone-except-the-owner/360580/1 "2016-06-13T02:58:48Z")

</div>

If I replicate an owners variable to the server then to the clients, it replicates the same(received) data to the owner too. This unnecessary data flow wastes bandwith and cost increases linearly: O(avg call count per client\*number of clients).

A variable option like “Replicate to everyone, except the owner” would solve this issue.

 ![94390-untitled.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/3/3/93338b56b22a0e856dc83a3b90ffe4485647be1e.jpeg)

Sender client already has the same data and it is able to call its own notify function by itself. Going to server and coming back is unnecessary.

Same problem occurs with the ‘Replicate’ option without notify, too. The screenshot above is just an example from my project.

---

<div class="post-metadata">

**Author:** ![Vaei](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vaei/32/710746_2.png) [@Vaei](https://forums.unrealengine.com/u/Vaei)\
**Post date:** [June 13, 2016, 10:44am UTC](https://forums.unrealengine.com/t/request-replicate-variable-to-everyone-except-the-owner/360580/2 "2016-06-13T10:44:25Z")

</div>

In C++ you can use DOREPLIFETIME\_CONDITION( AMySomething, MyVariable, COND\_SkipOwner ); , obviously this isn’t a solution for you since you’re asking to have it in BP, but main point is the functionality exists already if they are willing to extend it to BP… however if you have a C++ parent class you could declare the variable there and use COND\_SkipOwner.

It would be good if they could bring all the conditions to BP variables, I’m unsure why they haven’t.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_089a4978](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_089a4978](https://forums.unrealengine.com/u/anonymous_user_089a4978)\
**Post date:** [June 16, 2016, 10:29pm UTC](https://forums.unrealengine.com/t/request-replicate-variable-to-everyone-except-the-owner/360580/3 "2016-06-16T22:29:11Z")

</div>

Hi , do you know how can I define a custom event with C++ that multicasts with SkipOwner condition, without variable replication?

---

<div class="post-metadata">

**Author:** ![Vaei](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vaei/32/710746_2.png) [@Vaei](https://forums.unrealengine.com/u/Vaei)\
**Post date:** [June 17, 2016, 12:49am UTC](https://forums.unrealengine.com/t/request-replicate-variable-to-everyone-except-the-owner/360580/4 "2016-06-17T00:49:31Z")

</div>

Not with UFUNCTION specifiers, you’d have to check the Role when the RPC is received for it to decide whether to execute the code. You could always have a virtual function that your blueprint can override that is called by your C++ code if the Role is correct.
