Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Configured the key. How is key cancel?
#1
  Hi Quarchodronand other programmers.

I know how to configure the keys by clicking on which something will happen. But how do I cancel these settings? How do I make the key stop calling an action? 
Code:
            addEventHandler("onKey",function(key)
{
    if (key == KEY_7)
    {
setFreeze(true);
    }
})
I need "F7" to work as a freeze initially.
And then return " F7 " to its original form, so that the key does not start freezing.


All that happens is that I delete the "onKey" event . And in General, everything stops working (chat, list of players)
Reply


Messages In This Thread
Configured the key. How is key cancel? - by demor140202 - 24.02.2020, 10:57

Forum Jump:


Users browsing this thread: 1 Guest(s)