Profile image

How do i make a jet engine to work for a strictly limited time(0.5-10 seconds) after activation by certain conditions?

1,955 Rakoval500k  3.3 years ago

So, i want that particular engine to activate after ‘ammo(“MunitionName”)<x’ condition is met, and then work for desired amount of time only, no shorter, no longer. I could possibly search the answer from Snowflake0s's Funky Trees site, but his/her site happens to be disabled by now. I am already know how to utilize ‘ammo(“MunitionName”)<x’ input, but I don't know how to make it work for a precisely limited amount of time of, let's say, 1.75 seconds and then deactivate/shut down after those 1.75 seconds of work.

  • Log in to leave a comment
  • Profile image
    67.1k SnoWFLakE0s

    The FT site had a directory change, it's more like an actual website now.
    .
    https://snowflake0s.github.io/funkyguide

    Pinned 3.3 years ago
  • Profile image
    1,955 Rakoval500k

    @edensk Hmm... i have the weapons on activation group "all". Or you mean, i should type ammo(“MunitionName”)<x in the activation group of the turbojet? Also, sorry for not publishing the proof in time, I left my laptop with SP on my dacha near Academgorodok, I'll reach for it tomorrow.

    3.3 years ago
  • Profile image
    16.5k edensk

    @Rakoval500k you have the weapon on an activation group

    3.3 years ago
  • Profile image
    1,955 Rakoval500k

    @edensk Whoops, seems like ceil(1.75-sum(clamp01(ammo(“MunitionName”)<x))) doesn't work as expected: It just activates the jet engine from the start of the level forever without shutting it down. I'll publish proof build in the unlisted if you'll answer...

    3.3 years ago
  • Profile image
    1,955 Rakoval500k

    @edensk Ah thanks!

    3.3 years ago
  • Profile image
    16.5k edensk

    ceil(1.75-sum(clamp01(ammo(“MunitionName”)<x)))

    +1 3.3 years ago