Duplicated characters movement component doesn't fully work.
So I got the Animation Pack of the market. I didn't want to modify the original so I created a copy of ASP_Character by right clicking and hit Create Copy. It seems that when you do this, the character's Crouch and Jump features of the movement component will no longer work. Walk/Run work fine.
Unreal Engine 4.4.3, 4.5.0
Windows 7 x64
Nvidia GTX 970 - 4GB
Intel Xeon 5680 - 96GB ram
Asus 27" 2560x1440
As you discovered, the source of the issue is that the ASP_HeroTPP_Blueprint AnimBP casts to ASP_Character specifically. The AnimBP needs to cast to the class using it to reference the variables it needs when specifying Crouch and Jump animations.
There are two things you can do to adjust this:
Instead of duplicating the ASP_Character Blueprint, make a child Blueprint of class ASP_Character. This way you can make any adjustments you need and still access the variables from the parent class.
Or you can swap the Cast to ASP_Character nodes with Cast to MyASPCharacter (or whatever you choose to name your Character). If you do it this way, make sure you get a fresh version of the variables being referenced; in the case where you make a duplicate of ASP_Character, you would need to Cast to MyASPCharacter and then pull off that for JumpButtonDown and CrouchButtonDown to access that class' variables, because the old variables are referencing the original BP.
This may seem complicated, but generally you need to make sure that the AnimBlueprint you're using for your character only references the character BP or its parent. If you're seeing documentation or tutorials that say otherwise, please let me know where and I can get those updated. I will also make a feature request of a node that casts to the current CharacterBP that is using the AnimBP, but I don't know how possible that is.
Hope that helps!
answered Oct 06 '14 at 08:13 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here