PDA

View Full Version : How can i bind one key to do 2 things this way



Dudester
Dec 8 2006, 06:07
I am trying to bind a key to do 2 things. For example, i want my crouch key to be E, so when i press it i crouch. I then want to only press E key only once to then stand. At the momment i have to press the E key twice to stand from the crouch position.

maxqubit
Dec 8 2006, 09:22
I am trying to bind a key to do 2 things. For example, i want my crouch key to be E, so when i press it i crouch. I then want to only press E key only once to then stand. At the momment i have to press the E key twice to stand from the crouch position.
Not really what you ask but atm i have this

Q=crouch/prone
E=kneel
2xE=stand up

So in fact 2 keys for 3 positions. Works perfect for me

(I really like the flexibility of the key setup, well done BIS!)

But if you define E=crouch and E=stand ... wouldn't that function as a sort of toggle? Dunno, am at work. Will try tonite:)

troop
Dec 8 2006, 09:44
Quote[/b] ]But if you define E=crouch and E=stand ... wouldn't that function as a sort of toggle? Dunno, am at work. Will try tonite:)

Already tried. This does not work, because all three stances are
defined as single actions.

(Mine below)

keyStand[]={};
keyCrouch[]={45};
keyProne[]={44};
--
What I think is missing, is something like:

keyToggleCrouch[]={45};
keyToggleProne[]={44};

as is in 'Lean':

keyLeanLeft[]={16,524291};
keyLeanRight[]={18,524297};
keyLeanLeftToggle[]={272};
keyLeanRightToggle[]={274};