Network Replication spawn emitter
Hi, i'm trying to make a trace and spawn an emitter at the hit location, but i'm not sure how i can replicate the emitter to all clients. if i'd run the function on all clients with a multicast they would all get different hit locations and actually i don't even want to run the whole function on the clients because of the apply damage, just the spawn emitter part. i'm new to ue4 so i have no idea how to make this work.
here is the bp http://i.imgur.com/DHOUdO3.jpg
Can't you seperate the apply damage function from the emitter function?
I guess normaly you would just use a replicated function (custom event) like you did on the left side, to let the server create the emitter and maybe multicast it. If you need the hitpoint, you can just use the hitlocation as an input for your custom event, similar to the text variable you passed to the server.
I would cast the line trace on the client and than perform a replicated function (run on server) with the hitposition and let the server spawn the emitter. If hes set to replicate, than it should work. After that, i would use the SwitchHasAuthority and deal damage. Or with a sequence splitted.
answered Oct 03 '14 at 01:16 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here