Here is my problem : I’m trying to build a cover system from the TwinStick Shooter tutorial epic provide. The fact is that my character is rotating when he’s getting in cover, but it can’t reset to the normal rotation, even if I sore a variable with the default rotation at the moment the game is playing.
The process to do that : I’m launching a trace, that return me the cover the character will use. Then, I get the rotation of this cover, and make a Lerp(rotator) to have a smooth transition between the default rotation and the cover’s rotation, so that the character has the same rotation. And finally, when I’m leaving the cover, I’m trying to reset the character rotation to the “Default” one. But… its not working at all.
Here are some screenshots of the game and the Blueprint I’m using to do this :
Sorry for the long post …