alarm.sqf 371 B

1234567891011121314151617
  1. counter = 0;
  2. alarm = 0;
  3. str_alarm = "1";
  4. publicVariable "alarm";
  5. sleep 5;
  6. while {alarm == 0} do
  7. {
  8. //hint "DEBUG | HELLO FROM THE WHILE LOOP";
  9. playSound3D [MISSION_ROOT + "Sounds\alarm.ogg", radioSource, false, getPosASL radioSource, 30, 1, 100];//works by itsself
  10. sleep 1.5;//Wait 60seconds.
  11. };
  12. if (alarm == 1) then
  13. {
  14. //hint"DEBUG | HELLO FROM THE IF STATEMENT";
  15. };