runconsolecommand incrementvar convar 0 1 1
will be patched soon
Okay lets say we have 2 lua scripts and 2 convars we want to set. Is there a way to make a lua script when u load it in console it does this.
lua_openscript_cl Convar/ScriptOpener.lua.
convar1 0 to 1
convar2 0 to 2
Lua_openscript_cl Luascript1.lua
Lua_openscript_cl Luascript2.lua
|The two convars and lua scripts would be opened in console when doing Lua_openscript_cl Convar/Scriptopener.lua
If anyone has anything like this or knows how to do anything like this please help me out. I've tryed but failed
Yes, it's called Global.include
include( string luascript1.lua )?
function CMANCA:ASBOOT(v)
RunConsoleCommand("...", 1);
end