Let’s say I have a character who punches things. That’s good and all, however, he seems to stay in one place whenever he punches. What I actually want is for him to slide forward a bit while executing his punch. Is there any way to tell UE4 to make him slide forward whenever he punches?
I found the answer–one must do the following:
- Set up a notify and call the notify in the character’s Animation Blueprint
- Below the AnimNotify, Try Get Pawn Owner
- Get Movement Component from Try Get Pawn Owner
- Also Get Actor Forward Vector from Try Get Pawn Owner
- From the Get Actor Forward Vector, set up a Vector*Vector node and input the appropriate XYZ translations.
- From Get Movement Component, you need to Set Velocity
- Connect Get Movement Component to Set Velocity’s Target value.
- And finally, connect the Vector*Vector node to Set Velocity’s Velocity value.
If you think I missed anything and/or require pictures, go ahead and send a message down below. Thanks again!