Accessing existing console variables via Lua

Status
Not open for further replies.

Jazz

Member
This is either a Lua related question or a feature request depending on the answer.

I would like to check the value of an arbitrary existing console variable that isn't one that I created, since I can already access those. How would I go about doing this?
 
Last edited:
As far as I'm aware you can't do that with any existing console variables sadly.

The annoying thing is, there's no full list of console commands or variables located anywhere in the source - they're all scattered everywhere around it instead. Probably no surprise Lua doesn't have the ability to do this currently really.
 
That is too bad, I imagine that it would be useful to be able to respect existing console variables in Lua.

Perhaps if CV_FindVar were usable through Lua...
 
Last edited:
Status
Not open for further replies.

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

Back
Top