Hello,
I am again having an issue with my dedicated server…
My weapons (and my hair !) don’t attach… It was working well before with my listen server.
Here is how it works :
- The server spawn the weapon (spawn actor), it sets the owner, the relative location that should fit the right position etc. In the begin play of the weapon BP, the server attach it to the player socket.
- The client do the “attach actor to component” and attach the weapon to the hand socket.
- When pressing a button (equi/unequip key), then the weapon attach to the hand socket, and then to the back socket etc.
All this was working very well before with my listen server.
Now with the dedicated :
- the actor spawn well
- the actor seems to be attach to the root of the character, since if my player move arround the level the actor move with him BUT with the root component of the character and not with the socket I mentionned. I mean, the attach is not done, BUT it seems to be attach to the root since weapon are moving on the floor and jumping if I jump etc.
About my hair :
In my BP I have a skeletal mesh for the body, and a static mesh for the hair, which is attached to the head socket at launch. When launching the player, I take in the datatable which hair mesh should be use and then set the static mesh and then attach it (also in a repnotify for replication for all the clients and server).
It was also working before. But not anymore…
I don’t understand why it is acting like that. I think the problem is really the socket attachment, not how I do it. It is like if I was specifying a socket that doesn’t exist…
Maybe the dedicated server don’t see the socket as the listen server ?
Thank you for your help and time…
All the best
EDIT : new info, the problem occurs ONLY when I attach to a socket that I created myself in the skeleton (right click on a bone and add socket). If I attach to a bone, then the attach works… But it still a bad new, since I really need my sockets…