So i have a little problem were i can’t make my avatar sprint when LeftShift and W is pressed i thought you could do it like this ?
if(controller.velocity.magnitude > 0 && Input.GetKey(KeyCode.LeftShift && KeyCode.W))
{
animation.Play(“sprint”);
animation[“sprint”].wrapMode = WrapMode.Loop;
}
but i can’t make it work
BTW. it’s JavaScript. just so you know ![]()