PDA

View Full Version : need some help with binds and commands


|NvG|disaster
05-07-2007, 09:50 AM
I am creating a bind for myself to easily and quickly switch weapon before I die,
for this I create a bind but that bind needs to have a standard keypress action in there.
bind 3 "openScriptMenu ingame weaponswitch; [The keypress command needs to go here]"
The thing it does now is just open the weaponswitch menu but I also want to be able to change weapon in that menu, which would be for example the m1garand/gewehr/tokarev
the number these weapons have in the weaponmenu is 3, I need to simulate the pressing of key 3

And yes I really want to have this so dont ask anything relating to why I want it etc.

Scrapie
05-09-2007, 06:54 AM
try put "wait 5" and then the keypress or try to make an .cfg and execute it

i dont know if but.. maybe it exist any "menuscript" to select weapon

|NvG|disaster
05-11-2007, 09:17 AM
Well I dont know how to put a keypress in a commandline like the one over there, which is crucial to make it work...
What would I need to put into that cfg I would like to ask you... I don't know.

There are four menuscripts to select a weapon, the german, the american, the british and the russian

this is why I need the keypress and other things I tried with menu choices didn't work...

Scrapie
06-04-2007, 01:21 PM
i have tested some binds and i got it...

bind X "openScriptMenu weapon_american springfield_mp"
bind X "openScriptMenu weapon_russian mosin_nagant_sniper_mp"
bind X "openScriptMenu weapon_british sten_mp"
bind X "openScriptMenu weapon_german mp44_mp"

we need to use another menu.. ingame weaponswitch only is used in an serverside mod for example