Advertisement
Guest User

fn_sirenLights.sqf

a guest
Jan 27th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. /*
  2. File: fn_sirenLights.sqf
  3. Author: Bryan "Tonic" Boardwine
  4.  
  5. Description:
  6. Lets play a game! Can you guess what it does? I have faith in you, if you can't
  7. then you have failed me and therefor I lose all faith in humanity.. No pressure.
  8. */
  9. private["_vehicle"];
  10. _vehicle = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
  11. if(isNull _vehicle) exitWith {}; //Bad entry!
  12. if(!(typeOf _vehicle in ["C_Offroad_01_F","B_MRAP_01_F","I_MRAP_03_F","I_MRAP_03_hmg_F","C_Hatchback_01_sport_F"])) exitWith {}; //Last chance check to prevent something from defying humanity and creating a monster.
  13.  
  14. _trueorfalse = _vehicle getVariable["lights",FALSE];
  15.  
  16. if(_trueorfalse) then {
  17. _vehicle setVariable["lights",FALSE,TRUE];
  18. } else {
  19. _vehicle setVariable["lights",TRUE,TRUE];
  20. [[_vehicle,0.22],"life_fnc_copLights",true,false] call life_fnc_MP;
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement