# Function Replication

**URL:** <https://forums.unrealengine.com/t/function-replication/434780>\
**Category:** Blueprint\
**Tags:** replicate, unreal-engine, functions, Blueprint, question, function-signature, replicating\
**Created:** [September 30, 2018, 5:15pm UTC](https://forums.unrealengine.com/t/function-replication/434780 "2018-09-30T17:15:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sevanberkay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sevanberkay](https://forums.unrealengine.com/u/sevanberkay)\
**Post date:** [September 30, 2018, 5:15pm UTC](https://forums.unrealengine.com/t/function-replication/434780/1 "2018-09-30T17:15:03Z")

</div>

Hello,  
I have a function called Add Item. That has inputs and outputs. This works for adding item to index.  
I have a problem to replicate this.

 ![255148-additem.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/4/974c7f3e34e7e5c0ab27b269710039ba463921a2.png)

Here where i call that function.It works fine. But i want to replicate this. I tried this one  
255149-  
][2]

And This one is not working Even at server side. What is the problem i couldn’t find. I think its about that this add item is function.And how can i replicate functions i don’t know.  
Can someone pelase help me  
thanks you. 🙂

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [November 23, 2018, 7:54am UTC](https://forums.unrealengine.com/t/function-replication/434780/2 "2018-11-23T07:54:14Z")

</div>

You can replicate events by creating a custom event and setting it to replicate and then choosing which machine it runs on (server, owner’s client, or multicast)

To run on server the target must be a playercontroller or other connection owning class.  
To run on a specific client it must likewise use a specific player controller as target.  
Multicast is to the server AND all clients and works best from a gamestate.

Within the event you can run your function and it will happen on that machine.  
Events can pass parameters along just like functions can.
