Why won't client pawns animate across server?
So, i've gotten stuck on another probably simple problem, but i can't see what might be going wrong. I am assigning pawns to players through C++, and the animations are handled through blueprints. The client can see their own animation, but can only see each other's idle animation, the pawn physically moves around, but it does not transition to other animations. I have the MeshComponentUpdateFlag set to always tick and update bones.
I have a character class, MyCharacter. in the constructor of my character, the skeletal mesh and animation component are assigned as follows:
Then, in my GameMode class, I have overridden the SpawnDefaultPawnFor() function as follows:
Is it the use of the MyCharacter::StaticClass() that is causing it not to update the animation across the server?
sorry to ask, but i cannot for the life of me fathom what might be going wrong.
I figured out the problem and got the animations to finally replicate across the server. when assigning the animation blueprints in code like this, each state that changes the animations in the blueprints must be replicated.
so in the header:
then, in the cpp:
i guess its obvious enough, but i wish there was a little more clarification on some of these things. blueprints abstract a lot of details. maybe i'll write a tutorial later.
answered Jun 15 '14 at 12:15 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here