Solved Stopping a timer?

Discussion in 'Rust Development' started by HOUGAN_Y, Jun 5, 2017.

  1. Help! I use
    timer.every (1, () =>
    {
    algorithm for checking player;
    if (result == true) {
    stop something;
    return;
    }
    });
    How i can stop this "every" tiemr?
     
  2. Wulf

    Wulf Community Admin

    You'd need to assign it to a variable and then destroy it when you want to stop with .Destroy().
     
  3. Which type i should use?
     
  4. Wulf

    Wulf Community Admin

    You can use "var" for automatic typing and not have to specify a type, otherwise it'd be a Timer I believe.
     
  5. Thank you