Profile image

How do I add a delay to an input?

30.1k TriStar  4.1 years ago

I’m making some lights and I need to know that FT code.

  • Log in to leave a comment
  • Profile image
    16.5k edensk

    floor(smooth(input,1/x))
    x is the delay in seconds

    Pinned 4.1 years ago
  • Profile image
    4,895 ccc12345

    @edensk THANKS BRO

    10 months ago
  • Profile image
    9,351 StinkyRice

    @edensk where do i put it in

    2.4 years ago
  • Profile image
    9,351 StinkyRice

    @edensk and what do i put it in?

    2.4 years ago
  • Profile image
    16.5k edensk

    @Blub00The00Builder it's part of the code, yes

    2.5 years ago
  • Profile image
    9,351 StinkyRice

    @edensk is floor apart of it?

    2.5 years ago
  • Profile image
    16.8k MrGreen

    thx, might use it for RGB in a future build @edensk

    3.2 years ago
  • Profile image
    33.5k tsampoy

    @edensk ahh ok

    4.1 years ago
  • Profile image
    16.5k edensk

    @FeatherWing that is for inputs that can only be "on or off"
    For inputs such as Throttle, Pitch, etc you should use something I haven't thought of yet

    4.1 years ago
  • Profile image
    23.9k FeatherWing

    @edensk
    Does that also work on engines?

    4.1 years ago
  • Profile image
    16.5k edensk

    @tsampoy @TriStar you're welcome lol

    4.1 years ago
  • Profile image
    33.5k tsampoy

    @edensk Thank you!

    4.1 years ago
  • Profile image
    30.1k TriStar

    Thanks! @edensk

    4.1 years ago