I can spawn projectiles and replicate anything I need just fine within a Blueprint that inherits from PlayerCharacter. But the moment I start calling “FireProjectile” etc on other blueprints they are not replicated. Yes I have RPC functions in the other blueprints, but nothing appears to be working. I’m sure this is something simple.
- Session is joined
- On PostLogin the Game Mode spawns the PlayerCharacter and Possesses it.
- In BeginPlay on the PlayerCharacter we set up UI and spawn the weapon the player is holding
- When PlayerCharacter calls RPC functions on the weapon, nothing happens. If I move all that code back into the PlayerCharacter everything works
The weapon is visible on all game clients so it looks like it replicated just fine.
What am I missing?
In this image below I am calling the RPC function of the weapon. Note that the projectile spawns if playing single player, but in multiplayer nothing spawns.