setcvar -
05-03-2003, 03:30 AM
I think what you are looking for is "setcvar".
setcvar "mycvarname" "myvalue"
cvar is a 'console variable', i.e. a variable accessible through the console. So if you type mycvarname in the console it would bring up the message myvalue--if it was set before hand.
There is also "getcvar" and you can see a list of cvars that are already in the game by typing "cvarlist" in the console.
Hope that helps.
|