Setting console variables via Lua

NARbluebear

Member
Hello. Is there, by any chance, a way to change a console variable via Lua, or is that something I'd have to create a workaround for? Any help would be appreciated.
 
It depends exactly what you're looking to do. You can't change a console variable's value directly, but you can use the COM_BufInsertText function to force a player to execute something in the console. This has some pitfalls, as it literally is as if that player wrote the command in and executed it themselves.
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top