Advertisement
Guest User

Untitled

a guest
Nov 14th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  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. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement