Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. /*
  2. Wipers script made by granQ.
  3. Made for SFP, Swedish Forces Pack.
  4. Feel free to use, adjust for own purposes.
  5. The sound is from:
  6. http://www.freesound.org/samplesViewSingle.php?id=24208
  7. and have been modified by granQ. Feel free to use it as well under the
  8. Creative Commons Sampling Plus 1.0 License
  9. http://creativecommons.org/licenses/sampling+/1.0/
  10.  
  11. */
  12. private ["_car"];
  13. _car = _this;
  14.  
  15. while {player in _car} do
  16. {
  17. while {(rain > 0) AND (isEngineOn _car) AND (local _car)} do
  18. {
  19. _car animate ["wipers", 0];
  20. _car animate ["wipers2", 0];
  21. sleep 0.7875;
  22. _car say "sfp_tgb11_sound_wipers";
  23. _car animate ["wipers", 1];
  24. _car animate ["wipers2", 1];
  25. sleep 0.7875;
  26. };
  27. _car animate ["wipers", 0];
  28. _car animate ["wipers2", 0];
  29. waituntil {rain > 0};
  30. sleep 5;
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement