# Why do we need "run on owning client"? In the document illustration "not replicated" or "run on server" also works

**URL:** <https://forums.unrealengine.com/t/why-do-we-need-run-on-owning-client-in-the-document-illustration-not-replicated-or-run-on-server-also-works/373003>\
**Category:** Multiplayer & Networking\
**Tags:** Replication, authority, unreal-engine, Multiplayer, question\
**Created:** [October 11, 2016, 3:24am UTC](https://forums.unrealengine.com/t/why-do-we-need-run-on-owning-client-in-the-document-illustration-not-replicated-or-run-on-server-also-works/373003 "2016-10-11T03:24:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FuTou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FuTou](https://forums.unrealengine.com/u/FuTou)\
**Post date:** [October 11, 2016, 3:24am UTC](https://forums.unrealengine.com/t/why-do-we-need-run-on-owning-client-in-the-document-illustration-not-replicated-or-run-on-server-also-works/373003/1 "2016-10-11T03:24:33Z")

</div>

In the document illustration that shows “run on owning client”, I found that I could make it work even if I change it to"not replicated" or “run on server”. So what’s the point of “run on owninng client”? Under what circumstance do we need it?

document: [Replicating Functions in Blueprints | Unreal Engine Documentation](https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/Networking/ReplicateFunction/Blueprints/index.html)

The third part(near the bottom) is an example using “run on owning client” to simulate inventory empty/ get item:

[https://docs.unrealengine.com/latest/images/Gameplay/HowTo/Networking/ReplicateFunction/Blueprints/HowTo19.jpg](https://docs.unrealengine.com/latest/images/Gameplay/HowTo/Networking/ReplicateFunction/Blueprints/HowTo19.jpg)

After I change it to “not replicated” or “run on server”, it still works:

 ![110350-微信截图_20161011112228.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/f/89fba484c51a80426b86c2f2f7aed01ad0477043.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_21ba43ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_21ba43ad](https://forums.unrealengine.com/u/anonymous_user_21ba43ad)\
**Post date:** [October 11, 2016, 9:16pm UTC](https://forums.unrealengine.com/t/why-do-we-need-run-on-owning-client-in-the-document-illustration-not-replicated-or-run-on-server-also-works/373003/2 "2016-10-11T21:16:19Z")

</div>

Run on owning client functionality depends on who executes it.

Look at this chart from the RPCs documentation on the Client column

[RPCs][1]

 ![110453-rpcs.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/8/a/48a3f1911d6ccd848808025a01510fdb4db7d177.png)

So first we can see that Run on owning client pretty much only matters when you call it inside the server, because if you call it from a client it only affects himself which isn’t different from any regular function.

Now, when you call it from the server, Run on owning client behavior depends on wether you are calling it for a Client-owned actor or a server-owned actor. The only client-owned actors are usually players controllers and their pawns. In this case you are executing the Add item inside (I’m assuming) the trigger box blueprint, which is a server-owned actor that is why you don’t see a difference.

You would use run on owning client, for example to tell the client version of a player to set some variable that isn’t replicated by default, like walking speed. Or maybe you would use it to execute a certain effect or sound that you want to happen only in one client.

Edit: I hope my answer helps! Tell me if you have any more questions!!

---

<div class="post-metadata">

**Author:** ![FuTou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FuTou](https://forums.unrealengine.com/u/FuTou)\
**Post date:** [October 12, 2016, 11:07am UTC](https://forums.unrealengine.com/t/why-do-we-need-run-on-owning-client-in-the-document-illustration-not-replicated-or-run-on-server-also-works/373003/3 "2016-10-12T11:07:30Z")

</div>

It’s so perfect an answer! Thank you so much for getting me clear about this stuff!
