Advertisement
Guest User

Untitled

a guest
Jul 13th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.41 KB | None | 0 0
  1. //init.sqf
  2. MY_KEYDOWN_FNC = {
  3. switch (_this) do {
  4.  
  5.     //Key C
  6.     case 46: {
  7.     [] execVM "maraton.sqf";
  8.         };
  9.     };
  10. };
  11.  
  12.  
  13.  
  14. //Ejecutar consola
  15. waituntil {!isnull (finddisplay 46)};
  16. (findDisplay 46) displayAddEventHandler ["KeyDown","_this select 1 call MY_KEYDOWN_FNC;false;"];
  17.  
  18. //Posibles letras
  19. https://community.bistudio.com/wiki/DIK_KeyCodes
  20. https://community.bistudio.com/wiki/displaySetEventHandler
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement