Found out I don’t understand a thing about new input system.
Basically, what I want to do:
- I have my reload on R button
- I want by holding the same button for 2 seconds, perform a “mag check” animation
So basically I have an animation montage that consists of 2 things:
- Get the mag out
- Put the mag inside
I wanted to make a system where if you hold a button enough (not to trigger reload), my character would get the mag out and hold it at the last animation frame
And then by releasing the button, would put the mag inside
What I found out…
If I choose to “Hold” modifier, one of two things would happen:
-
If trigger is one shot → my character get the mag out and put it back inside because right after trigger gets shot → it calls “Complete”
-
If trigger is not one shot → the “get the mag out” animation will loop it’s first frame because input system fires the triggers rapidly untill I stop holding the R button
I need something like this:
- A modifier, that fires a trigger only if the button is held down for N seconds
- That will fire this trigger once (and I would bind my “get the mag out” animation to it)
- That then will fire another trigger (and I would bind i guess a looped 1 frame animation of holding a mag in front of my head)
- And will fire “complete” only after I release the button
( P.S. I tried pulse, coz its the closest to “fire several triggers” thing I could probably have, but as soon as the last trigger fires, it completes and i put the mag inside despite the fact im still holding the button)
If anybody has a solution, I would be so glad that I’ll name my kids after your nickname
Thank you beforehand