# RPC in Character Actor Component

**URL:** <https://forums.unrealengine.com/t/rpc-in-character-actor-component/2345138>\
**Category:** Multiplayer & Networking\
**Tags:** interface, Replication, unreal-engine, question, Blueprint\
**Created:** [February 19, 2025, 4:02pm UTC](https://forums.unrealengine.com/t/rpc-in-character-actor-component/2345138 "2025-02-19T16:02:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Space\_Grouse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/space_grouse/32/642211_2.png) [@Space\_Grouse](https://forums.unrealengine.com/u/Space_Grouse)\
**Post date:** [February 19, 2025, 4:02pm UTC](https://forums.unrealengine.com/t/rpc-in-character-actor-component/2345138/1 "2025-02-19T16:02:24Z")

</div>

I have a blueprint interface for handling interactions that I have added to my character. The interface includes a RPC to the server and within the RPC sends a call to the actor interacted with. The problem is the RPC isn’t running for clients. This is probably an ownership issue, but if the interface is within the character shouldn’t the player be the owner?

---

<div class="post-metadata">

**Author:** ![JonathanBengoa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JonathanBengoa](https://forums.unrealengine.com/u/JonathanBengoa)\
**Post date:** [February 19, 2025, 4:16pm UTC](https://forums.unrealengine.com/t/rpc-in-character-actor-component/2345138/2 "2025-02-19T16:16:04Z")

</div>

Hey @Space_Grouse

Sounds like a problem with the ownership like you said. It’s the first time I heard someone trying to add the RPC on the interface. Is not better a component in this case?

Anyway, I am not sure if I understand correctly you are sending an Server\_RPC from the owned client to the server and then are you sending another one after the interaction?

Do you mind to share you character code?  
If you do it will be great if you can add comments like “this is not being called on clients” or something like that.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [February 19, 2025, 8:21pm UTC](https://forums.unrealengine.com/t/rpc-in-character-actor-component/2345138/3 "2025-02-19T20:21:47Z")

</div>

You should be having the server do it’s own interaction.

You interact: successful and valid → RPC Server  
Server interact: successful and valid → does the authoritative stuff… interface actions.

Don’t pass references to the server. It opens the game up to cheating.

---

<div class="post-metadata">

**Author:** ![Space\_Grouse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/space_grouse/32/642211_2.png) [@Space\_Grouse](https://forums.unrealengine.com/u/Space_Grouse)\
**Post date:** [February 20, 2025, 2:46am UTC](https://forums.unrealengine.com/t/rpc-in-character-actor-component/2345138/4 "2025-02-20T02:46:44Z")

</div>

My apologies, I meant a blueprint component. That’s what I get for asking questions on the forum during my day job.

Here’s the interaction input in the interaction blueprint component

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/f/7df5d7b544fc939a1d341d3c54e8b072a3b2f781.png)

This is the interaction received by the other actor (vehicle in this case) that isn’t working because I don’t receive an interaction from the server.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/5/bb5db54d444f54f5dec72d4c887ab87f2349f8b4.png)

---

<div class="post-metadata">

**Author:** ![Space\_Grouse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/space_grouse/32/642211_2.png) [@Space\_Grouse](https://forums.unrealengine.com/u/Space_Grouse)\
**Post date:** [February 20, 2025, 4:57am UTC](https://forums.unrealengine.com/t/rpc-in-character-actor-component/2345138/5 "2025-02-20T04:57:19Z")

</div>

And I think I should actually be doing it sort of like this in the vehicle blueprint.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/a/a8a261396777e7ee01fc435aa86c87a1c13978ea.png)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [February 20, 2025, 5:01am UTC](https://forums.unrealengine.com/t/rpc-in-character-actor-component/2345138/6 "2025-02-20T05:01:00Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/4/b/14baf81cf3499118f2d092cd6ee18fa289f06cb6.png)

---

<div class="post-metadata">

**Author:** ![Space\_Grouse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/space_grouse/32/642211_2.png) [@Space\_Grouse](https://forums.unrealengine.com/u/Space_Grouse)\
**Post date:** [February 20, 2025, 1:23pm UTC](https://forums.unrealengine.com/t/rpc-in-character-actor-component/2345138/7 "2025-02-20T13:23:04Z")

</div>

So instead of having my trace on the input, I’ve got it on tick within the blueprint component so that it automatically shows UI when an item is interactable. I’ve always avoided tick, but I was told it was fine in this case.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/e/3eed2a5fb675d61f2ef82121e277b8d2ec1d80d3.png)

Here’s my trace script. This sets the interactable actor (for the interaction input) and updates a widget prompt.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/1/621330d0ce81fcb48ef0b3e04aa98e062ab09466.png)

I tried running the trace on the server, but that didn’t seem to help.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/0/a8043c5e86293f4b27db53b99696b62a5c22fd88.png)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [February 20, 2025, 10:02pm UTC](https://forums.unrealengine.com/t/rpc-in-character-actor-component/2345138/8 "2025-02-20T22:02:37Z")

</div>

I use a collision component (capsule) attach to camera. It overlaps and triggers BPI events on the other actor. UI stuff. Server/sim proxies don’t do this. Technically they shouldn’t have the components to do so. I remove it on spawn from server and sims. And cameras from sims.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/5/2b5582ee81b2d83a88dd61ea135b7bda247244c2.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/7/9b71c454fbf9dcdc2717b8ea12db91cd0afcafd1.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/8/3a8a52b669da7cafede3316c543e278023109e57.jpeg)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/f/8/5f8798fd913ce95e673300a04a6288aeae6f10e8.png)

The Input action is the request to “attempt to” pick up item, get in vehicle, open door.

---

<div class="post-metadata">

**Author:** ![Space\_Grouse](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/space_grouse/32/642211_2.png) [@Space\_Grouse](https://forums.unrealengine.com/u/Space_Grouse)\
**Post date:** [February 21, 2025, 1:41pm UTC](https://forums.unrealengine.com/t/rpc-in-character-actor-component/2345138/9 "2025-02-21T13:41:00Z")

</div>

Got it! The actor I’m interacting on wasn’t being set on the server. After that I made these changes in the blueprint component. Also you said not to pass variables to the server, so I think I’ve got that right now.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/0/9b0b398f9e64a54db287dc3228514203e9b92e30.png)

And now in the vehicle I’ve got this, and things are working properly (second player interacting is taking the passenger seat)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/1/53126a2138b3022e8b844a5cf98621d320e7b599.png)

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 23, 2025, 1:41pm UTC](https://forums.unrealengine.com/t/rpc-in-character-actor-component/2345138/10 "2025-03-23T13:41:48Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
