Thread: calling $args
View Single Post
setcvar
Old
  (#3)
tltrude is Offline
Senior Member
 
Posts: 150
Join Date: Jan 2002
Location: Altus, OK, USA
   
Default 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.
  
Reply With Quote