Forums Index >> Modding >> Hotkeys for messages??
Page : <1> :
Yes it is possible, no I do not know how....
Open up the main.cs file and paste this to the bottom.
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "R", "", "commandToServer('messageSent', "pass!");");
}
For PCs the main.cs should be located in: BraveTree/ThinkTanks/Contents/Resources.
You can change the hot key and message to anything you want. Any server with team chat add "/tm" to the front of your message and only the team will see it. Good for league servers.
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "R", "", "commandToServer('messageSent', "/tm pass!");");
}
If you're interested in the number keypad, it will only let you map 1-3-7-9. 2-4-5-6-8 are already binded as driving keys.
if (!$server::dedicated) {
moveMap.bindCmd(keyboard, "numpad9", "", "commandToServer('messageSent', "/tm pass!");");
}
EDIT - Yep, the forum is deleting the 2 highlighted items below. Add those and you should be good to go.
Last edited: Wednesday, February 09, 2005 at 6:38:19 AM
Thanks KBC, but I couldn't get it to work. Where do I put my message in the script? I assumed that the "R" meant that this was the hotkey for this script. Any suggestions?
Email me its in my profile(just click on my name) and I will set you up ! B)
Yup - there's a feature in the forum where it cuts out a character from the code that's posted. Without that character, the code won't work.
Good plan, KBC!
Perfect, it works great now. I owe you one. Now I won't feel quite so bad when you guys steal the scrum from me!
Page : <1> :
Hi, I am fairly new to TT and would like to know if it is possible to use hotkeys to display messages instead of having to type them manually. If so, I will need detailed instructions. Thanks