Join us on our TWC Discord channel

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Advanced 01 - Two commands under one key 1
#1
Basic 07 - Comment lines | Advanced 02 - Two commands under one key 2

If you came this far understanding everybit of it you should do a little applause for yourself!

Now lets get serious, I'll teach you how to use put two commands under one key.
The idea is that you can use your ALT key and another key (like F3) to say a different command then with only F3:

autoexec.cfg
Code:
bind F3 "say Hi" bind ALT "+vstr HiTeam HiGlob" set HiGlob "vstr HiGlobSay" set HiTeam "vstr HiTeamSay" set HiGlobSay "bind F3 say Hi" set HiTeamSay "bind F3 say_team Hi"
If you followed my other tutorials you understand most part exept the +vstr:
+vstr is the important thing here, it makes it possible to do 2 commands on 1 key: pressed and released.

If ALT is pressed it will goto HiTeam -> HiTeamSay -> bind F3 say_team Hi
If ALT is released it will goto HiGlob -> HiGlobSay -> bind F3 say Hi

Its a bit hard to explain, I hope you understand it this way!
"If you tell the truth, you don't have to remember anything."


Possibly Related Threads…
Thread Author Replies Views Last Post
  Advanced 04 - Class selecter John 2 5,377 13-05-2013, 07:12 PM
Last Post: John
  Advanced 03 - Team, class and map cfg's John 11 11,397 11-02-2013, 06:12 PM
Last Post: John
  Advanced 02 - Two commands under one key 2 John 0 4,209 21-02-2012, 06:13 PM
Last Post: John
  Basic 03 - Advanced binds 2 John 0 4,424 21-02-2012, 06:09 PM
Last Post: John
  Basic 02 - Advanced binds 1 John 0 4,326 21-02-2012, 06:09 PM
Last Post: John

Forum Jump:


Users browsing this thread: