Replication: Sever spawns... How to get on Clients?
I'm spawning weapons on a server, attaching them serverside, then instructing the clients to make the same attachments... but nothing.
Alright, So firstly, Running on server:
Then the server spawns the Weapons:
Once the weapons are spawned (and look great) on the server for each Character, we tell Clients to attach the Object references for the weapons that the server spawned:
But in the end... no weapons for either character on the client. Wut's wrong?
asked Dec 13 '17 at 11:13 PM in Blueprint Scripting
I'm an idiot, I'm an idiot, I'm an idiot,
See in that second image, how the Weapon is spawned with a target Skeletal mesh. That mesh is replicated and gets set up in the construction script (to be fair, really should have worked) but that little bit of construction script wasn't running on the clients (!?). Run with a [Delay0] after [Event Begin Play] on the weapons; no more racing the server lag (I think).
They were always working, I just couldn't see them because, you know, no mesh. That should have been the first thing I checked.
I guess it just took documenting the issue to figure it out (it's been two days q.q)
answered Dec 13 '17 at 11:32 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here