Trying to freeze analogue trigger input, but nothing works correctly.
I’m trying to make a bow-and-arrow weapon that determines shot power by how far the trigger is held down. The problem is, however, I can’t figure out a way to map the trigger value to emitter velocity without said velocity immediately resetting to 0 when I release the trigger, even if I have a freeze-on-descending-variable chip set up. It just instantly reverts no matter what I seem to do.
Here’s a couple ideas I had, if it helps any of you:
-Find a way to slow down the slider’s movement
-Find a way to make it so the velocity can only rise until it’s reset by an outside gadget, never fall
-Find a way to immediately grab the current number when it starts descending, save that somewhere else, and use that number as the velocity
I’d really appreciate some help on this, I’m completely stuck.
-
Hi,
i did something similar to this recently.
What I did was have a calculator gadget looking for trigger not being pressed at all so it was let to less than 0.01
Then I had the trigger going into a signal manipulator with a slow smooth out.
which I froze at the point of the calculator gadget confirming r2 had been released.
I also had another calculator looking for greater than 0.2 also "anded" in with the less than one.
Which means the more you pull r2 and the faster you release it the higher the signal manipulator will freeze, but also letting go slowly or not pulling the trigger enough won't cause a shot signal to get through.
enjoy
John -
'@mmdev1 - John & Luci
I can’t seem to get it to work. No matter what my smoothing is set to, it always goes back to 0 instantly. Can you provide more details? -
Hi,
If you plug r2 into a remapper set to "smoothing only" then set the smooth fall to say 5 seconds, then verify its working by plugging that remapper into a light.
what should happen is the light will turn on to full brightness if you fully press r2 and take around 5 seconds to fully turn off.
John -
Ah, yep, that fixed it! Thanks!
請登入寫評論。