Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Name: sirens
- Description: Everything required to get the lightbar to work
- Author: Tisor for A3L
- */
- diag_log "SIRENS WORKING";
- private["_vcl"];
- _vcl = _this;
- while {alive _vcl} do {
- if (!isNull driver _vcl && _vcl animationPhase "ani_siren" > 0 && getdammage _vcl < 0.7 ) then {
- _phase = _vcl animationPhase "ani_siren";
- _phase = _phase * 10;
- _phase = round _phase;
- switch (_phase) do {
- case (2): {
- _vcl say3D "Siren1";
- sleep 5.964;
- };
- case (4): {
- _vcl say3D "Siren2";
- sleep 5.191;
- };
- case (6): {
- _vcl say3D "Siren3";
- sleep 3.668;
- };
- };
- } else {
- waitUntil {sleep 2; (_vcl animationPhase "ani_siren" > 0 && getdammage _vcl < 0.7 )};
- };
- };
- exit;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement