Forums Index >> Modding >> GlobalActionMap.bindCmd question
Page : <1> :
Good question, got me stumped. :S
Hmm if I remember right it were for me "button0". If that wont work you can try "button2" too.
You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.
Rule #1: Don't bind button0. That's your left mouse button. Binding it means you can't click on any of the menu options...
Zaxis
TMO - do you mean by rolling the middle mouse or hitting it? Zaxis is for scrolling and button2 (I'm pretty sure) is for clicking.
[Ishbuu]
Actually what I've done is set up my scrollwheel to switch my tanks in Dash's mods (and other servers that support it). I can just dial up the tank I want without having to look at the keyboard.
Ishbuu - thx for the clarification on the clicking. I may want to hook something onto that someday.
On a related note, is there anyway I can find out what *type* of game I'm currently in? For instance, if I'm in Team Scrum, can I determine that in the cs code? If so, then I can program it to automatically load the hotkeys appropriate to the game I'm playing without having to cycle through them all manually (and possibly flooding the chat server)
If($Game::MissionType $= "Team Scrum")
{
//code goes here
}
EDIT: This won't work - Go to the thread after the next one and ull find the working ones
Last edited: Tuesday, November 09, 2004 at 4:55:30 PM
Many thanks!
Hey that wont work. I've created the list with the working ones:
Normal Types: (will be Team and non-team battle)
Scrum:
if($Game::MissionType $= "Scrum")
{
//code here
}
Battlemode:
if($Game::MissionType $= "DeathMatch")
{
//code here
}
Team Types:
Scrum:
if($Game::MissionType $= "Scrum" && $Game::TeamGame)
{
//code here
}
Battlemode:
if($Game::MissionType $= "DeathMatch" && $Game::TeamGame)
{
//code here
}
Non-Team Types:
Scrum:
if($Game::MissionType $= "Scrum" && !$Game::TeamGame)
{
//code here
}
Battlemode:
if($Game::MissionType $= "DeathMatch" && !$Game::TeamGame)
{
//code here
}
Last edited: Tuesday, November 09, 2004 at 4:52:37 PM
Most excellent! Thanks! I'll add this capability to my Message Hotkey scripts and publish it as well. Look for it later this week.
Nope. Hope that helped!
I'm thinking on creating a selection script so you press your scroll wheel button on something visible, and it'll send out a grappling hook to retreive it (powerups/health powerups) You can even grapple trees + rocks with it I hope
(useful for campers lol!)
Yours
Leeds(SA²) (GHL [Grand High Leader])
Page : <1> :
Anyone know what the proper command is to bind the scrollwheel on my mouse?
GlobalActionMap.bindCmd(mouse, button1, "",""); is for the right mouse button, but I have no clue what the wheel would be (up, down & click are all available).
Any help would be most appreciated.
Thanks,
TMO