; *****************************************************
; ** Operation Flashpoint Script File
; *****************************************************

;Unit that has the action
_unitacc = _this select 0
;Unit that activated the action
_unit = _this select 1
;Action index
_actionidx = _this select 2
_unitacc removeAction _actionidx
? damage record > 0.9:exit

_ssdmusic = ["solidor","rose","clair","wo","verlaine","lili","am","luft","march2","alte","uber"]
;Put here the durations of your tunes
_ssddurations = [200,100,80,120,250]
_r1 = random (count _ssdmusic)
_r1 = _r1 - (_r1 mod 1)
_mus = _ssdmusic select _r1
_dur = _ssddurations select _r1
_unitacc say _mus
;Action will be available again once the tune is completed
~_dur
_unitacc AddAction ["Tune In Record player","track.sqs"]
exit


