--By Nigelsheffield, script for sequencial sounds playing, as in 2.0.11 it works fine edit add or delete the local files list bellow to change sounds played but you must keep the format the same for it to work. as is sound files must be in SOUNDS/en folder but that is easy to change with the playFile line. also you can replace ("sh") with ("ls32") to use with logic switch 32, or in fact any switch you want. local files = { "zCert1", "zCert2", "zCert3", "zCert4", "zACert5", "zACert6", "zACert8", "zACert9", "horn" } local seqcount = 0 local release = 0 local longpull = 0 local current = 1 local sh_id = getFieldInfo("sh").id local function init(sequence) --seqcount = 0 end local function run(sequence) sh = getValue(sh_id) --[[look for key H pulled read file number seqcount inc seqcount ]]-- if sh > 0 and release < 1 then release = 1 playFile( "SOUNDS/en/" .. files[ current ] .. ".wav" ) if current == #files then current = 1 else current = current + 1 end end if sh < 99 then release=0 longpull = 0 end --long pull reset if sh > 0 then longpull = longpull + 1 end if longpull > 100 and current > 1 then current = 1 playFile("SOUNDS/en/SeqReset.wav") end end return { init=init, run=run }