Run commands in plugin without printing to console?
Imaginary code below, but basically if I have a timer executing a command every X seconds, is there a way to hide that from showing in the console? It's running a calculation every 0.1 to 5 seconds which floods my console and I'd like to avoid it. I've tried (if we use the example below) to just put ConVar.Env.time = _time (within the timer.Repeat), but that didn't work.

timer.Repeat(0.1f, 0, () => 
            {
                float _time;
                _time = mx+b
                ConsoleSystem.Run(ConsoleSystem.Option.Server, $"env.time {_time}"); 
            });​
I've know I can change the last line to use Server.Command, but I don't know which is better and I don't think it matters because both produce the console spam.
ConsoleSystem.Option.Quiet

The command is likely to still have output though depending on which command you run, as most will reply.

Thanks @Wulf. Is there a way to set env.time in the code example above without passing the env.time X argument?
I'm not sure what you mean exactly by "X argument", but you can look to see what the env.time runs, and run the code directly.
Check out 'Time Of Day' plugin, could be useful.
Have you tried ConVar.Env.time = _time ? It might work but I haven't tested it.
5e13a8d5b2bc5.jpg Wulf
I'm not sure what you mean exactly by "X argument", but you can look to see what the env.time runs, and run the code directly.

How do I look to see what env.time runs? I have VS setup and pointed to the DLLs, so I can see ConVar.Env.Time but a console command like env.time and setting the float ConVar.Env.Time doesn't necessarily do the same thing.

I'd guess I'd like to see more about what the console command (and other console commands) actually does, but I'm ignorant on how to trace that.

Check out TOD_Sky.  Specifically 'TOD_Sky.Cycle.Hour'.