Player continues running after sliding
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
To fix simply change these lines:
in bl_FirstPersonController.cs -> DoSilde()
with:
Let me know if that works for you.
Code: Select all
if (State != PlayerState.Jumping)
State = PlayerState.Idle;
with:
Code: Select all
if(Crounching)
State = PlayerState.Crouching;
else if (State != PlayerState.Jumping)
State = PlayerState.Idle;