# RPC never being called?

**URL:** <https://forums.unrealengine.com/t/rpc-never-being-called/304479>\
**Category:** Multiplayer & Networking\
**Tags:** rpc, unreal-engine, implementation, Multiplayer, CPP, question\
**Created:** [January 20, 2015, 12:23pm UTC](https://forums.unrealengine.com/t/rpc-never-being-called/304479 "2015-01-20T12:23:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [January 20, 2015, 12:23pm UTC](https://forums.unrealengine.com/t/rpc-never-being-called/304479/1 "2015-01-20T12:23:12Z")

</div>

In the hope that we get some developer feedback, copying this thread from the forums to here too.

Quote from ‘Bickers’  
"Hello, I have been working on a networking a game. I have successfully replicated actors as they now both appear in server and client. However I have now started working on remote function calls, to ensure actions carried out on the client are also carried out on the server. I have been using the Shooter Game Example and Unreal Wikis, and believe I followed them correctly, resulting in the code attached. Currently when I step through the code, it passes the client check but does not execute the ServerFireLaser function, from what I can tell as it never reaches the breakpoint or executes any of the code within said function.

Can anybody explain why it is not working and/or where I am going wrong.  
Thank you in advance, Bickers. "

 ![27293-servercall.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/2/51278c499d46e2cd4936ee01b2cecb25ca8e9801.png)

Original Thread:

> **[Remote Function Call Networking](https://forums.unrealengine.com/showthread.php?56840-Remote-Function-Call-Networking)**
>
> Hello, I have been working on a networking a game. I have successfully replicated actors as they now both appear in server and client. However I have now started working on remote function calls, to ensure actions carried out on the client are also...

---

<div class="post-metadata">

**Author:** ![DarthB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DarthB](https://forums.unrealengine.com/u/DarthB)\
**Post date:** [January 20, 2015, 12:30pm UTC](https://forums.unrealengine.com/t/rpc-never-being-called/304479/2 "2015-01-20T12:30:18Z")

</div>

Hi TheJamsh,

to call a RPC method on the Server the calling client must also be the Owner of the Actor. Check if your Clients controller calls:

```
MySatelite.SetOwner(this)

```

Somewhere in your Controller.

Also see: [https://docs.unrealengine.com/latest/INT/Gameplay/Networking/Replication/RPCs/index.html](https://docs.unrealengine.com/latest/INT/Gameplay/Networking/Replication/RPCs/index.html) - Section Requirements and Caveats point 3 and 4.

This one cost me some time a pair of month ago. I hope this will do the job for you.

Greetings

DarthB

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [January 28, 2015, 9:10pm UTC](https://forums.unrealengine.com/t/rpc-never-being-called/304479/3 "2015-01-28T21:10:53Z")

</div>

Thanks DarthB, in our case we needed four pawns to interact with one actor, so the functions are called via the Pawn and replicated to all clients. THanks!
