Replication of Pickup

I want to spawn a blueprint class on my map whe loading the map through the gamemode and after spawning i want to add a static mesh in the blueprint class but only the server is able to see them.



GameMode only exist on the Server so making a Server RPC (RS_Spawn_Weapons) is redundant as it is already on the Server.

Also the Server RPC (RS_Add_Static_Mesh) on BP_Pickup will fail on the Clients since the Client needs to be the Owner of the BP_Pickup in order to send Server RPC’s.
If you inspect the log you will see a warning “UNetDriver::ProcessRemoteFunction: No owning connection for actor” and the function will never be called on the Client.
You don’t need a RPC here anyway just make it a regular function.