Alliedassault

Alliedassault (alliedassault.us/index.php)
-   Tech Questions & Problems (alliedassault.us/forumdisplay.php?f=8)
-   -   calling $args (alliedassault.us/showthread.php?t=22888)

xbreed 04-12-2003 05:10 PM

calling $args
 
I was wondering if it is possible to call an argument string in an alias, for example:

alias servermsg "rcon ui_message" $arg

Ofcourse this doesn't work but ideally I would only have to type servermsg <something> in the console to have <something> relayed as a serverwide message.

Anyone know of a way to make it work?

xbreed 04-12-2003 05:12 PM

remember that i'm not looking for an easy way to do servermessages, I'm looking for the correct syntax to call arguments.

tltrude 05-03-2003 04:30 AM

setcvar
 
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.


All times are GMT -6. The time now is 08:08 AM.

Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.