Binding overhead map to M key?
by Nick Huffman · in Technical Issues · 11/15/2004 (12:04 pm) · 5 replies
I followed this tutorial Tutorial
and got this overhead map to work however I want to bind it to the M key and make it a toggle feature. How would I go about this?
Thanks in advance for your help.
and got this overhead map to work however I want to bind it to the M key and make it a toggle feature. How would I go about this?
Thanks in advance for your help.
About the author
#2
11/15/2004 (12:57 pm)
Thanks!!! Where would that code be placed?
#3
11/15/2004 (1:11 pm)
Thanks!!! Where would that code be placed?
#4
11/15/2004 (2:23 pm)
Nick, that would go into the default.bind.cs script in the client/scripts folder.
#5
11/15/2004 (3:12 pm)
Thanks for all the help on this problem.
Associate Anthony Rosenbaum
function toggleFredMap( %val ) { if(%val) Fred::toggle(); } function Fred::toggle(%this) { if (Fred.isAwake()) { Canvas.popDialog(Fred); } else { Canvas.pushDialog(Fred); } } moveMap.bind(keyboard, "m", toggleFredMap);