Hi, everyone.

Can anyone show me how to disable key_1 on level_load

I tried many different ways and no luck.

Here is one of many examples that I have tried:

Code:
STRING* key_1 = "1";
/////////////////////////////
action WepShoppe_loadLvL() // attach this action to an entity at the weapons shoppes door 

{
       var key_1_off;
       while (vec_dist (player.x, my.x) > 100)  // wait until the player comes close to this entity
       {
               wait (1);        
       }

       wait (-1); // wait for a second
       level_load (WepShoppe_wmb); // now load the wepshoppe level
       mouse_mode = 4; // set courser on for this lvl
       mouse_map = cursor_pcx;
       key_1_off = 0;
       if(key_pressed(key_for_str(key_1)))
       {
       key_1_off = OFF; // or 0
       }
       ptr_remove(me);       

}



I tried enable_key but that only disables Esc button.


Honesty will get you far, were dishonesty will get you only so far in life.