I’m working on a small little project to help me learn hands on how replication works. So I setup a character that can spawn bombs to try and hurt the other players with. My problem comes when I start playing and any client tries to spawn a bomb. All the clients see the player spawn 2 bombs when the server sees the client spawn 1. If the server server spawns a bomb, it looks as if only one has spawned but to all the clients it looks like the server has spawned 2 bombs
Here is my Player Blueprint to spawn the bombs. (if you need more pictures of other actors lemme know)
Thank you! that solved the 2 actors issue. although now the explosion particle I have spawned when the bomb explodes only player’s on the server. and here is the event graph of the bomb actor
Hi, when you can set your Actor BP_Bomb to replicate and use something like this. The bomb spawning is handled by the server and because the bomb actor is set to replicate every client will see it.
If I would guess whats happening in your setup is you have the BP_Bomb Actor set to replicate. When a client wants to spawn a bomb it’s replicated to all. Therefore it gets once spawned on every client and once on the server. Because the actor is set to replicate the actor you’ve spawned on the server gets replicated to every client, so every client will see two bombs and the server will only see the one it has spawned.