Help - Search - Members - Calendar
Full Version: Toggling Between Two Scripts
Unknown Worlds Forums > Natural Selection > Natural Selection Creation > NS Customization
Mrfourtyseven
hlk
esuna
Quite simple really.

CODE
//Quickswitch for aliens
bind mouse2 "+qswi12"
alias +qswi12 "slot2"
alias -qswi12 "slot1"

Put that in alien.cfg.

CODE
//Quickswitch for marines
bind mouse2 "qswi12"
alias qswi12 "qswi1"
alias qswi1 "slot2; alias qswi12 qswi2"
alias qswi2 "slot1; alias qswi12 qswi1"

Put that in marine.cfg.

Now, add this to your userconfig.cfg. Change q to whatever key you want to use to toggle between scripts.
CODE
bind q "scripttoggle"
alias scripttoggle "aliencfg"
alias aliencfg "exec alien.cfg; alias scripttoggle marinecfg"
alias marinecfg "exec marine.cfg; alias scripttoggle aliencfg"


EDIT: To be honest though, rather than putting in a toggle, i'd recommend binding each config to a seperate key. Because you can't echo back any messages (For example "Alien.cfg loaded") you might find yourself selecting the wrong script at the wrong moment, but your choice really. smile-fix.gif
Mrfourtyseven
Thank you very much!

It worked well. I think I thought too complicated tounge.gif

bye!
esuna
QUOTE (Mr.47 @ Nov 20 2004, 01:59 PM)
Thank you very much!

It worked well. I think I thought too complicated tounge.gif

bye!

Yeah, you definately did. When using seperate configurations for aliens and marines (And seperate alien life forms) it's best to seperate them into different configs, for ease of switching and also as it's much easier to find what you need and such. Good organisation really. smile-fix.gif
slayerkl2
this looks interesting. I just may use this meh self......
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.