Page 1 of 1

defined script question

Posted: Sun Aug 17, 2003 9:03 am
by {R.E.D}**Duke Justice**
Hi.

I have a question regarding scripting in key bindings.

I wanted to:
-take a grenade,
-open the door,
-throw the grenade.

I had to add wait statements into it because everything went too fast and I got the grenade in between the nuts.

My problem is that ince the script is started by my key, I can do noting but wait 'till it finishes before moving or else.

Is it normal? Can this be avoided? Could I still be able to move while the script finishes?

Regards

Duke

Posted: Sun Aug 17, 2003 7:47 pm
by Alcoholic
paste the binds

Posted: Sun Aug 17, 2003 7:54 pm
by {R.E.D}**Duke Justice**
Ok,

alias hf1 "hud_fastswitch 1"
alias hf0 "hud_fastswitch 0"

bind t "hf1; useweaponclass grenade; wait 350; +use; wait 250; +attackprimary; hf0"


times are in milliseconds and are the minimal that I can put so this works on my PC. The total time of execution of this is about 1 second.

In this time, I can't move nor lean nor anything...

Any idea?

Best regards

Duke