1. How do I create a new instance of a timer?

    so I can use this:


    Code:
                timer.Repeat(5f, 0, () =>
                {
                    Puts("Hello world!")
                });
     
  2. Wulf

    Wulf Community Admin

    That's your instance right there. ;)

    What exactly are you wanting to do?
     
  3. Just a quick question,
    I usally don't store the return value of the timer and destroy it if i unload my plugin.
    Is that handled by oxide internally that it keeps tracks of all plugins created by a plugin and destroys them if you unload the plugin?
     
  4. Wulf

    Wulf Community Admin

    C# plugins have their timers destroyed by Oxide when they are unloaded.
     
  5. Wulf

    Wulf Community Admin

    Looks like you're missing a reference to Oxide.Core.CSharp.dll.