• Slow motion and blur not working
    6 replies, posted
Hi there. So i'm trying to make a "time control" script, where I need to add slow motion and motion blur. I'm trying to use this: [CODE] timer.Simple(1, game.ConsoleCommand, "host_timescale 0.03\n") timer.Simple(1, game.ConsoleCommand, "pp_motionblur 1\n") [/CODE] And it just says "Timer error: Attempt to use a nil value" What is wrong with it?
[lua] timer.Simple(1, function() game.ConsoleCommand("host_timescale 0.03\n"); end); [/lua]
Doesn't work. It says ConsoleCommand is a nil value or something.
Are you running it client-side or server-side?
Client sided
Use RunConsoleCommand instead then.
For the host_timescale, you're going to want to send that to the server and run that via game.ConsoleCommand. While you're sending that to the server, you might as well include a loop for all the players to run the console command for pp_motionblur.
Sorry, you need to Log In to post a reply to this thread.