|
Post by cursedereaper on Jun 9, 2019 10:28:37 GMT
Hey everyone, I don't know if the current Version already fixed this but if someone works with the same version I currently use I want to point out how to make OnStartSprint work as I tought it would.
Currently in the public virtual void Sprint(bool value) there is this case that make the player stop sprinting by pressing shift if useContinousSprint is active. Which is were the OnStartSprinting.Invoke(); is paced but I guess it needs to be added to the next case which make the character sprint if it isn't sprinting.
This is the small pice of code you need to change.
if (isGrounded && !isCrouching && useContinuousSprint) {
isSprinting = !isSprinting;
//OnStartSprinting.Invoke (); //removed } else if (!isSprinting) {
isSprinting = true;
OnStartSprinting.Invoke (); //added } I hope that helpes others as well. you'll find this piece in the vThirdPersonController.
|
|