Profile image

Funky Trees Question Because I’m Dumb

17.6k Spacedoge12345plane  4.1 years ago
how do you add a delay to throttle output, let’s say I start to throttle up but it takes 10 seconds before the engines even start working.
  • Log in to leave a comment
  • Profile image
    41.5k rexzion

    @ChisP Ok!

    4.0 years ago
  • Profile image
    13.9k ChrisPy

    @rexzion I figured it out I used the whole ammo("name")=0 thing

    4.1 years ago
  • Profile image
    41.5k rexzion

    Hope this helps!

    4.1 years ago
  • Profile image
    41.5k rexzion

    @ChisP In XML go to the "group" and on the input section write " FireGuns " instead of an activation group number.

    4.1 years ago
  • Profile image
    161k spefyjerbf

    Most likely replace the 1/10 with 1/60 for that delay.

    4.1 years ago
  • Profile image

    So what would a 60 second delay look like@spefyjerbf

    4.1 years ago
  • Profile image
    13.9k ChrisPy

    How do I have a detacher detach something when I hit fire weapons for it?

    4.1 years ago
  • Profile image
    13.9k ChrisPy

    I have a question as well

    4.1 years ago
  • Profile image
    4,536 Bman01

    H o w d o t h e t r e e b e s o f u n k y

    +4 4.1 years ago
  • Profile image
    161k spefyjerbf

    Multiply the bolded function with your throttle input: floor(smooth(clamp01(ceil(Throttle)), Throttle ? 1 / 10 : pow(10,10)))
    .
    The 1/10 value should make a delay of 10 seconds. Feel free to edit this value if it doesn't give the proper delay.
    .
    The pow(10,10) is just a large number to make the smooth function return to zero instantaneously (so the delay only goes one way).
    .
    This is a fairly new technique that I have yet to post!
    .
    IMPORTANT EDIT: I added a ceil() to the throttle to make the delay uniform between all throttle inputs. Please use the updated expression as is currently displayed in this comment!

    +9 4.1 years ago