Help - Search - Members - Calendar
Full Version: Not Really A Script, But A Bind Help...
Unknown Worlds Forums > Natural Selection > Natural Selection Creation > Scripting Discussion
BadGirlDefender
ok, i play alot on the aeRO servers, with the extra upgrades etc, and im getting **** off with typing /menu the entire time. can someone please tell me correct console code for binding the number 0 to saying /menu

after ages trying stuff like:
bind 0 say"/menu"
bind 0 say /menu
bind 0 say/menu

etc, im kinda irritated wink-fix.gif

any help?
obuh
CODE
bind 0 "say /menu"


This should work.
BadGirlDefender
just trying it now, thnx smile-fix.gif

soz, i was sure it was say space message, but it just dint work tounge.gif



EDIT: ok, just realised, now i cant exit the menu, cos exit menu is 0 mad-fix.gif

so, i tried unbind 0 "say /menu" and bind 9 "say /menu"

now, i can activate it with 9 and 0, but 0 doesnt close it any more


EDIT EDIT: when trying bind 0 0, it says unknown command 0
obuh
To unbind the key:
CODE
unbind 0


And keep the bind 9 "say /menu" part.
BadGirlDefender
k, thnx tounge.gif

EDIT: 0 does nothing now, not at all. im trying binding it to something via options, then going thru again

EDIT EDIT: still no joy, 0 just does nothing now :'( at worst, i was planning to einstall anyway
a_civilian
bind 0 slot10

slot10 is what 0 is bound to by default, and it is the command that the plugin looks for to call the "0" menu option. It cannot be bound in the controls menu because it normally serves no purpose in NS.
BadGirlDefender
brillo, thnx u two....hopefully no more edits wink-fix.gif
Scotteh
alias menu "say /menu; bind 0 menuoff"
alias menuoff "slot10; bind 0 menu"

then bind 0 to menu in your config and it will still get arround mp_blockscripts
BadGirlDefender
no need, its not really a script, it was just a bind i was having difficulty with, and in my tired state, saw this smile-fix.gif

thnx anyway tho, and the final unbind thing worked smile-fix.gif
TOmekki
QUOTE (Scotteh @ May 31 2005, 04:17 PM)
alias menu "say /menu; bind 0 menuoff"
alias menuoff "slot10; bind 0 menu"

this means that you can press 0 and it brings up the menu, and when you press it again it closes it. so you dont need 2 buttons for the job.
BadGirlDefender
the menu closes on press of 0, and im used to that, but thnx anyway smile-fix.gif
ReK
bah, didn't read the full thread...
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.