In my game I have found that the CharacterMesh->LinkAnimClassLayers function only works correctly in the beginplay function.
Context: I am developing a mutliplayer game and I have already confirmed that my server and replication code works properly for the function i am using to change my class layers. Furthermore, the Enum for WeaponType is also properly passing through it and getting set on both the server and the clients. I have also attempted to pass my C++ code through into blueprints and trigger the change there and while the CharacterMesh->LinkAnimClassLayers is called in blueprints as well, nothing happens or changes.
I will post images of my code below, but I dont know whats going on.
PS. I understand that I don’t need to call server twice as the code is carried through on both server and client, and I also know that the beginplay is also triggered on both server and clients. Im just doing this because I thought there might have been an issue with my code but I have not been able to find any. plz help.