Howdy guys.
Here is a script that plays a song and when you go up to the entity and use it it it goes to the next, the songs keep looping until you change it.
So far it plays throughout the whole level, I'm trying to get it so that the sound feels like it's coming from the entity. Any help on this would be wonderful.
Script:
;Script by Ashley Tayles
;Note: The songs that are in this script by default are free
; music from TGC Store. You must either download them or change the
; files the script point to. It also uses one of the default FPSC music tracks.
desc = Radio Script
;main script
;STARTING SONG
:state=0:loopsound=audiobank\music\MadLad\aboveclouds.ogg,state=1
:state=1,plrdistwithin=50,plrusingaction=1:stopsound,state=2
:state=2,plrusingaction=0:loopsound=audiobank\music\MadLad\nightcrawl.ogg,state=3
:state=3,plrdistwithin=50,plrusingaction=1:stopsound,state=4
:state=4,plrusingaction=0:loopsound=audiobank\music\Kabassy\Kabassy.ogg,state=5
:state=5,plrdistwithin=50,plrusingaction=1:stopsound,state=6
:state=6,plrusingaction=0:loopsound=audiobank\music\TerrorStrike\TerrorStrike.ogg,state=7
;SAME SONG AS STARTING SONG
:state=7,plrdistwithin=50,plrusingaction=1:stopsound,state=8
:state=8,plrusingaction=0:loopsound=audiobank\music\MadLad\aboveclouds.ogg,state=1
Hope you guys like it and find it useful. Please leave some feedback!