Profile image

How do i put a delay in variables?

270 SimpleStudent  5 months 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
    46.5k PlaneFlightX

    @SimpleStudent No problem!

    2 months ago
  • Profile image

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

    +1 2 months ago
  • Profile image
    46.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 5 months ago
  • Profile image
    23.2k Graingy

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

    +1 5 months ago
  • Profile image

    @Graingy in simpleplanes

    5 months ago
  • Profile image
    23.2k Graingy

    Have you considered redstone repeaters?

    5 months 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

    5 months ago