|
Post by aru1310 on Mar 4, 2019 23:45:44 GMT
Right now, when i perform a roll the player stands up after the roll. How do i make him stay crouched after roll? please help!!!
|
|
|
Post by cursedereaper on Jun 7, 2019 16:50:28 GMT
There is a part in the code that activates Auto Crouch if you roll and you need to add an if clause that stops that from happening if your player is crouching.
Go into the Sctipt named "vThirdPersonAnimator" and go to the protected virtual void RollAnimation() (line 234 I think but I also changed some other lines so it is somewhere around that line). There you find autoCrouch = true. You need to make an if Clause arround that which only uses autoCrouch if (!isCrouching).
That way rolling will only activate the AutoCrouch if you roll from standing.
I hope the answer didn't came to late. I only figured it out today and in all honesty I hoped someone else would find the solution and post it here so I don't need to look for it myself^^".
|
|