How do I bind... -1 reply

Please wait...

Dark Maul

|*|*|*|*|*|*|*|*|

50 XP

14th November 2002

0 Uploads

863 Posts

0 Threads

#1 16 years ago

I am making a mod and one of the things i have to do is make it so you draw a weapon and fire once. I tried this: bind HOME "weapon 2;+altattack" but it just drew it and then kept charging forever, there was no way to stop it. as an experiment i typed bind HOME +altattack and Home acted just like the alt button. is there anyway to have it draw weapon 2 and then do a normal alt attack?




Ender_920

Swift Warrior

50 XP

29th April 2003

0 Uploads

13 Posts

0 Threads

#2 16 years ago
Darth CaliphI am making a mod and one of the things i have to do is make it so you draw a weapon and fire once. I tried this: bind HOME "weapon 2;+altattack" but it just drew it and then kept charging forever, there was no way to stop it. as an experiment i typed bind HOME +altattack and Home acted just like the alt button. is there anyway to have it draw weapon 2 and then do a normal alt attack?

There are a few things that you can do, since I don't know specifically what you want I'll give you a few options.

bind HOME "weapon 2;+altattack; -altattack" bind HOME "weapon 2;+altattack; wait 1; -altattack" bind HOME "weapon 2;+altattack; wait 2; -altattack"

Let me know if this helps.




Dark Maul

|*|*|*|*|*|*|*|*|

50 XP

14th November 2002

0 Uploads

863 Posts

0 Threads

#3 16 years ago

thank you. thats exactly what i wanted to know.




Beetle4

GamingForums newbie

50 XP

22nd May 2003

0 Uploads

43 Posts

0 Threads

#4 16 years ago

when the command is simply bound as a key, the press is considered the + (start) and the release is considered the - (release) but with scripts and binds like that, it isnt.