Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [] spawn {
- waituntil {!isnull (finddisplay 46)};
- (findDisplay 46) displayAddEventHandler ["KeyDown",
- {
- params ["_code"];
- _vehicle = vehicle player;
- if ((_vehicle isKindOf "ED4_Ford_CVPI_Base_A3") or (_vehicle isKindOf "ED4_Ford_CVPILB_Base_A3")) then {
- if (_code in (actionKeys "headlights")) then {
- if ((_vehicle animationPhase "hideTurret") == 1) then {
- _vehicle setHit ["spotlight_pos",1];
- };
- };
- };
- }];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement