Alliedassault           
FAQ Calendar Search Today's Posts Mark Forums Read
Go Back   Alliedassault > Lounge > Tech Questions & Problems
Reload this Page calling $args
Tech Questions & Problems Ask our resident experts about any military shooter game server administration and other technical issues.

Reply
 
Thread Tools Display Modes
calling $args
Old
  (#1)
xbreed is Offline
Junior Member
 
Posts: 2
Join Date: Apr 2003
   
Default calling $args - 04-12-2003, 05:10 PM

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?
  
Reply With Quote
Old
  (#2)
xbreed is Offline
Junior Member
 
Posts: 2
Join Date: Apr 2003
   
Default 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.
  
Reply With Quote
setcvar
Old
  (#3)
tltrude is Offline
Senior Member
 
Posts: 150
Join Date: Jan 2002
Location: Altus, OK, USA
   
Default setcvar - 05-03-2003, 04: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
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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