🚬
NovoScript
  • NovoScript - Tutorial
  • API
    • Module
    • Events
    • Objects
      • World
      • Client
      • Packets
      • Player
      • Entity
    • Utilities
      • Web Utility
      • File Utility
      • Render Utility
      • Game Utility
      • Timer Utility
      • Angle Untility
      • Entity Utility
    • Enums
    • Global Variables
  • Examples
    • Self Damage
    • Multi Aura
    • OldNCP Bhop
Powered by GitBook
On this page

Was this helpful?

  1. API
  2. Utilities

Timer Utility

A kind of a "stopwatch"

timer_util.getTimer()

Returns a Timer Object with methods

Name

Parameters

Type

Description

delay

Long

boolean

Returns true if the amount of milliseconds you specified has passed since the last reset

reset

None

void

Resets the timer

// will print "foo" every second (1000 ms)
var timer = timer_util.getTimer();
if(timer.delay(1000){
    print("foo")
    timer.reset();
}
PreviousGame UtilityNextAngle Untility

Last updated 3 years ago

Was this helpful?