Answers for "arma 3 key pressed"

C
0

arma 3 key pressed

Add the following to Zeus's init field
// Key 59 is F1

this addEventHandler 
[ 
 "CuratorObjectRegistered", 
 { 
  nul = [] spawn  
  { 
   waitUntil {!(isNull (findDisplay 312))}; 
 
   (findDisplay 312) displayAddEventHandler 
   [ 
    "keyDown", 
    { 
     params ["_displayorcontrol", "_key", "_shift", "_ctrl", "_alt"]; 
 
     if (_key == 59) then  
     { 
      systemChat str "Hello"; 
     }; 
    } 
   ]; 
  }; 
 } 
];
Posted by: Guest on April-24-2022

Code answers related to "C"

Browse Popular Code Answers by Language