SHARE
TWEET

Untitled

a guest Nov 14th, 2017 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [] spawn {
  2.     waituntil {!isnull (finddisplay 46)};
  3.     (findDisplay 46) displayAddEventHandler ["KeyDown",
  4.     {
  5.         params ["_code"];
  6.             _vehicle = vehicle player;
  7.             if ((_vehicle isKindOf "ED4_Ford_CVPI_Base_A3") or (_vehicle isKindOf "ED4_Ford_CVPILB_Base_A3")) then {
  8.                 if (_code in (actionKeys "headlights")) then {
  9.                     if ((_vehicle animationPhase "hideTurret") == 1) then {
  10.                         _vehicle setHit ["spotlight_pos",1];
  11.                     };
  12.                 };
  13.             };
  14.     }];
  15. };
RAW Paste Data
Top