Profile image

How do i put a delay in variables?

338 SimpleStudent  one year ago

I've found a funny way to put an input into a jet engine's throttle by setting it to Time / 300 to watch it slowly build up. Is there a way i can reset "Time" at the push of a button? say i could make a variable that uses Time to count but then can be reset or added or decreased... maybe with the "sum" input prefix.

  • Log in to leave a comment
  • Profile image
    49.5k PlaneFlightX

    @SimpleStudent No problem!

    9 months ago
  • Profile image

    @PlaneFlightX shoot i didn't thank you.
    Thanks!

    +1 9 months ago
  • Profile image
    49.5k PlaneFlightX

    Hello! You will want to make a variable called anything, eg FuelRamp (idk what to call it). In that variable, put Time / 300 (Edit: don't do that, see below. Now, make a button, set its interactionType to Once (or Continuous, your choice), the outputValue to 0, and the input to be your variable name.

    Edit: Don't use time. Make it a self referencing variable, where the variable is called FuelRamp, and the code in it is FuelRamp + 0.01 or something. If you use Time, the value will revert back to normal as soon as you release the button.

    +4 one year ago
  • Profile image
    36.9k Graingy

    And I have nothing better to do but be annoying (false I'm avoiding responsibility)

    +1 one year ago
  • Profile image

    @Graingy in simpleplanes

    one year ago
  • Profile image
    36.9k Graingy

    Have you considered redstone repeaters?

    one year ago
  • Profile image

    @edensk I'm sorry if the tag disturbed you but i've seen you reply to multiple funky trees posts similar to mine

    one year ago