(HELP) Replicating Top Down Projectiles with Blueprints

Hello everyone, my name is Kevin, I’m trying to make a top down projectile casting multiplayer game. I’m using the top down template and started learning replication on it.

So far I replicated movement ( I activated this
image
) so clients can also move to the cursor

And sprinting ability which all clients can see
(


).

My problem right now is with the basic projectiles and how to implement it with replication, solving this will open up the posibility of crafting the whole projectiles section, I need your help :pray:t3:

Problem:

Server Can shoot “BP_projectile” in any direction

Clients can also shoot projectiles but only depending on the direction of player 1 controller (or Server) So, for instance, to shoot from client with current setup I need to press the respective input while pointing from player 1 Viewport or else it won’t shoot.

BP_Projectile is replicated

It spawns a basic explosion FX, nothing fancy on there

I had animations being called on multicast by an RPC that I called on input and all clients were able to see them while casting this projectile, but I need to fix the projectile first so I can focus on implementing animations later.

HERE’S HOW IT LOOKS, WOULD LOVE TO KNOW HOW TO TAKE IT FROM HERE:

Blueprints for BP_TopDownController

Blueprint for BP_TopDownCharacter

  1. Input Call Run on Server Custom Event

  2. Projectile Custom Event - Run On Server

  3. Projectile Custom Event - Not replicated, (event used in picture 1)

I feel like my issue is regarding replicating the player controller so it can locally read the cursor individually and tell the server that data so it can spawn their projectiles as clients but I have literally 0 idea where to start

Thanks in advance,
Kevin

I had to rebuild the system to server calls are way more organized following this video https://www.youtube.com/watch?v=HqM-XqmqqB4&t=135s&pp=ygUddG9wIGRvd24gcGFydCAzIHVucmVhbCBlbmdpbmU%3D

Current state

  1. All my actors can see the projectiles I spawn in server and also movement, it all looks and feels good

  2. my server locomotion abp isnt reading, he looks static, whereas all client look good and see server anim bp animations too, I mean basic locomotion

  3. I can’t get the clients to fire to the location using “get hit result under cursor by channel”, it will only obey the server mouse even though I’m running this function on server

Client calls that function like this

I’m super close, this is the one mechanic I wanna get before moving forward with the other aspects of the game, I will update if I find a solution for other ppl too