Variables
Moderator: Moderators
Variables
Can anyone give me a short instruction how to employ variables in .cfg files? I've seen some people that use it, and I would like to know how u can initiate a variable, and change it. This might really make alot of my scripts work better, or at least easier to tweak later on.
-
- killed itself
- Posts: 407
- Joined: Sun Aug 29, 2004 4:17 pm
- In-game Name: stan0x
- Location: Netherlands
- Operating System: Windows 7, linux
- Processor model/speed: i7 2600K
- Memory: 16GB DRR3
- Hard drive: 1 x 240GB SSD 5 x 2 TB
- Graphics card: GTX470
- Monitor: LG
- Mouse: MX
- Keyboard: Steelseries G7
- Location: nl
// mijn config
bind ctrl "+shift"
set button1 "mouse1"
set button2 "mouse2"
set button3 "mouse3"
//Button #1
set b1_func1 "+attack"
set b1_func2 "use Throwing Combat Knife;set sensitivity 3.5"
//button #2
set b2_func1 "+moveup"
set b2_func2 "use M26 Fragmentation Grenade"
//button #3
set b3_func1 "use MK23 Pistol"
set b3_func2 "use dual mk23 pistols"
alias +shift "bind $button1 $b1_func2 ; bind $button2 $b2_func2 ; bind $button3 $b3_func2"
alias -shift "bind $button1 $b1_func1 ; bind $button2 $b2_func1 ; bind $button3 $b3_func1"
somthing like this n99 ?
#clan.fubar #narf #heks #aq2world