Client not receiving reference to actor spawned by server

Space Grouse Games
Fri, 09 May 2025 04:29:29 +0000
Programming & Scripting

I am spawning a weapon (rifle) on the server, and then trying to set it as a reference on the client so they can do things with it (like shoot). However, the client isn’t receiving the actor when I RPC. What am I missing here?

So this function is within a blueprint component on the controller, runs on the server, spawns the rifle, attaches it to the player character, and everything works great.

At the end of that function I send a reference to the rifle actor to the owning client within that same blueprint component. The problem is, the owning client doesn’t receive it, so I can’t set the reference for the client to use.

How do I get the owning client to receive the reference so it can set it and use it later? I feel like I am missing something obvious here.

1 post - 1 participant