Linetrace in multiplayer

hi,i create this blueprint for linetrace in multiplayer,but the [spawn emitter=explotion] in other clinet is not in the correct location,how to set location of fireing of player fired for another client in this blueprint,or how do location shooting for all client to be :((

Hi there, the steps:

1)Input event happens only locally, so you need to replicate request to “fire” to the server.

2)On server, you check your stuff (enough bullets like logic) and if everything ok, you do your core logic stuff, like linetrace, then you call multicasted event with result as input (let’s say input vector for linetrace), in this way you transfer values from server to all clients.

3)Multicasted event spawn explosion in location which got passed from server thru event input.

Regards.

please help in this blueprint function

No, i posted the algorithm, its pretty simple and take less than 10 mins to make it, now is your turn to watch Epic tutorials to understand how it all works and make it yourself.