Help - Search - Members - Calendar
Full Version: Mousewheel Toggle Script
Unknown Worlds Forums > Natural Selection > Natural Selection Creation > Scripting Discussion
Slavak
FINALLY GOT IT WOOOT

CODE
//pistol script
alias "ub" "unbind mwheeldown; unbind mwheelup"
alias "muj" bind "mwheelup" "+jump"
alias "mua" bind "mwheelup" "+attack"
alias "mdj" bind "mwheeldown" "+jump"
alias "mda" bind "mwheeldown" "+attack"
alias "jump" "muj; mdj"
alias "attack" "mua; mda"

bind "1" "ub; slot1; jump"
bind "2" "ub; slot2; attack"
bind "3" "ub; slot3; jump"
bind "4" "ub; slot4; jump"


im sure one of you can write a better one but idk, I FINALLY GOT IT!!!!!!!!!!!!!!!!!


unfortunitly it dosnet work on mp_bs 1.....

any idea why?
Uzguz
It's because the keys 1-4 are bound to multiple commands. Encapsulate those into aliases, and bind the keys to them instead; that should do it.
Hivelord
CODE
// Mwheel Attack Slot2
alias "FOUR" "SLOT4;BIND MWHEELUP +JUMP;BIND MWHEELDOWN +JUMP"
alias "THREE" "SLOT3;BIND MWHEELUP +JUMP;BIND MWHEELDOWN +JUMP"
alias "TWO" "SLOT2;BIND MWHEELUP +aTTACK;BIND MWHEELDOWN +ATTACK"
alias "ONE" "SLOT1;BIND MWHEELUP +JUMP;BIND MWHEELDOWN +JUMP"
bind 1 "ONE"
bind 2 "TWO"
bind 3 "THREE"
bind 4 "FOUR"
// Mwheel Attack Slot2


this works
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-2008 Invision Power Services, Inc.