Wasnt there a way to activate and deactivate things based on the amount of input given in? Like activating a rotor after hitting 45% VTOL
or starting a piston after -25% pitch, or have I just gone mad? if not, how did we used to do it? did it get removed or something?
Specific inputs
8,762 BlunderBirb
4.9 years ago
@spefyjerbf thanks a ton.
Yep, this seems very much like a funky trees problem. For the 45% VTOL problem, the input would probably be
clamp01(VTOL - 0.45)
. As for the -25% pitch, the input would most likely byclamp01(-0.25 - Pitch)
, assuming that you would want the piston to move when the pitch input goes to larger negative numbers. This code should work for the purposes described in this post, feel free to copy-paste the code that I provided.@spefyjerbf Oh god, is this in funkky trees now?
In short, yes! Here's a post describing how to use comparative logic. I can provide the code specific to your question at a later time if you need, too.