Jump to content

Nitrobar


Mefisto_PL

Recommended Posts

1) get a car

2) tune it with NOS

3) get a stopwatch

4) trigger the nitro

5) write down the time

6) create another bar in the "race" resource

7) set this bar to "1" if the car has nitro, else don't

8) if the car has nitro and "fire" is pressed, activate a timer which triggers each 200 ms and reduces the bar (1-(maxNitroTime - timercalls*200)/maxNitroTime)

9) if (maxNitroTime - timercalls*200) <= 0 then set the bar to 0

10) if another nitro is ready (measure that time, too maybe) or a nitro was picked up, set the bar to 1 again

11) ???

12) PROFIT

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...