Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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"; 
     }; 
    } 
   ]; 
  }; 
 } 
];
 
PREVIOUS NEXT
Tagged: #arma #key #pressed
ADD COMMENT
Topic
Name
9+1 =