I want something that when "GS>97.2222" (over 350km/h speed) it inputs a beeping sound that isn't just a long BEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEP.
Edits:
- Maybe this is useful? https://www.simpleplanes.com/Forums/View/1043330/New-Input-System-Explanation-Tutorial-Funky-Trees-1-9-Beta-Extremely-lon
- Time could be used to make a sequenced beep by dividing Time to 1 or 0 to get an input that if GS>97.2222 then it will do the thing
If anyone else wants to do this copy and credit PlaneFlightX's code and adjust for yourself
clamp01(GS > 97.2222) * clamp01(pingpong(sum(X), 1) > 0.5)
Adjust the value of x to increase or decrease the beep speed.
"clamp01(Activate3 * clamp01(smooth(Pitch, 0.1) < 1) * smooth(Pitch, 0.1)"
"Activate3 ? (clamp01(Activate3 * clamp01(smooth(Pitch, 0.1) < 1) * smooth(Pitch, 0.1)) : 0" seems not to work for some reason
@SimpleStudent That sounds like a good idea
@PlaneFlightX i think i can solve it by using a if gate
@PlaneFlightX so when you're not using the boost the overheat variable adds up
@SimpleStudent What do you mean by this (I don't quite understand)?
@PlaneFlightX Oh, also i noticed that the overheat still gets affected when Activate3 is not on (as a variable)
@SimpleStudent Good to hear!
@PlaneFlightX I tried it and it works really interestingly! I used a text label to display what input the engine was getting, (i.e. i was pasting the code into the InputController) and when i applied jet power it did a really weird thing. It slowly increased input until it reached max input then it went to 0. That means the overheat does stop it, but i just realised as i'm typing that i need to put it in a separate variable. now i'm trying to figure it out. It works though!
@PlaneFlightX No, my mac at home hasn’t got SP installed. It muffed itself up awhile ago bc of the ‘puter’s age being too much for steam
@SimpleStudent Have you tried it yet?
@PlaneFlightX i forgor as well, school holidays got me forgetting to check inbox
@SimpleStudent bruh forgot
anyway, clamp01(Activate3 * clamp01(smooth(Pitch, 0.1) < 1) * smooth(Pitch, 0.1)
Maybe try that?
@PlaneFlightX Heck yea!
@SimpleStudent At work rn (on break) but I'll look at it when I get home.
@SimpleStudent can’t wait to see it!
@Randomplayer Indeed! I'm planning to upload this lil project when i finish it, both modded and not.
@PlaneFlightX Pitch function. so when Pitch is added, overheat is added.
sounds like your building!.....👀
@SimpleStudent Seems doable. What exactly makes this engine overheat?
@PlaneFlightX I have one more question that probably doesn't need an extra post. (Don't worry, when i do post this AircraftDesign i will credit you fully).
I want to try to make an overheat function. I've got a jet engine that relies on Pitch and that uses Activate3 to turn on and off (it has a high enough ThrottleResponse to react quickly and auto turn off). I was thinking of a way to make it so when you've used the jet for so long it'll overheat for a couple seconds or something. For example, you can use it for up to 10 sec and then let go to watch the heat seep back down (using a label for reference) or when it hits the max it becomes unusable till the overheat bar is 0?
@PlaneFlightX Thankyou!
You might be able to do it if you somehow get the input in the form of a sine wave. Not sure though; I've never tried the tone generator mod.