Join us on our TWC Discord channel

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic 04 - Settings
#1
Basic 03 - Advanced binds 2 | Basic 05 - Multiple cfg's

To use settings in your cfg you need to use the command set or seta:
set just sets a value to a setting and seta sets and archives a value to your command, so with seta you're settings will be just the same as the previous time.

In this example I'll use name as a setting (yes you're name is a setting, that makes sense!):

autoexec.cfg
Code:
seta name ^6John

As you can see its not hard to do this, now lets continue to a namechanger:

autoexec.cfg
Code:
bind r vstr reload set reload "vstr namechange; +reload; -reload" set namechange vstr name1 set name1 "seta name ^6John; set namechange vstr name2" set name2 "seta name ^5John; set namechange vstr name3" set name3 "seta name ^4John; set namechange vstr name1"

Reloading will now reload you're gun (+reload start reloading, -reload stop reloading. You only wanna reload once!) and will change you're name into a new color!

A big list with almost all the settings that exist:
http://www.antman.info/wolf/cvar/cmdcvarlist.html


Attached Files
.cfg   tutorial4.cfg (Size: 948 bytes / Downloads: 13)
"If you tell the truth, you don't have to remember anything."


Possibly Related Threads…
Thread Author Replies Views Last Post
  Basic 01 - Simple binds John 3 6,227 21-11-2012, 02:34 PM
Last Post: yvoms
  Basic 07 - Comment lines John 0 4,097 21-02-2012, 06:12 PM
Last Post: John
  Basic 06 - Mod cfg John 0 4,559 21-02-2012, 06:11 PM
Last Post: John
  Basic 05 - Multiple cfg's John 0 4,158 21-02-2012, 06:11 PM
Last Post: John
  Basic 03 - Advanced binds 2 John 0 4,432 21-02-2012, 06:09 PM
Last Post: John

Forum Jump:


Users browsing this thread: 1 Guest(s)