- Home /
New Input System Multiple Actions from Single Button
I am trying to create a game where the player can roll by pressing a button and sprint by holding that same button (in this case the "B" button on an Xbox controller). I currently have a roll action and a sprint action both assigned to the "B" button with different other properties. When I hold "B", it sprints just fine. When I press "B" it starts to sprint and then stops because the sprint action is an axis and the player will only sprint if its value is not equal to 0. It should perform a roll when I press "B".
I have tried many combinations of interactions and action types to no success. Any help is appreciated.
ps. I am using the Player Input component as my method of implementing the new input system so advice about using a c# class, while appreciated, is not very useful