Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Problem with music script (it requires me to play the song's in order)

Author
Message
AVPR
14
Years of Service
User Offline
Joined: 20th Jul 2010
Location:
Posted: 2nd Aug 2010 06:26
I wrote a music script that works fine except for the fact that it makes me have to play the song's in the order that i scripted them. Please help


This is the script

[;Artificial intelligence script

;Header

desc = player uses code to play a song

;Triggers

;7
:state=0,plrdistwithin=50:state=1
:state=1,scancodekeypressed=6:state=2,music=audiobank\music\Eminem\loseyourself.wav
:state=2:musicvolume=100,state=0
;8
:state=0,plrdistwithin=50:state=3
:state=3,scancodekeypressed=7:state=4,music=audiobank\music\eminem\airplanes.wav
:state=4:musicvolume=100,state=0
;9
:state=0,plrdistwithin=50:state=5
:state=5,scancodekeypressed=8:state=6,music=audiobank\music\eminem\When_im_gone.wav
:state=6:musicvolume=100,state=0
]

Can anyone see whats wrong with it?

TGC = AWESOME!!
TerrorNation
14
Years of Service
User Offline
Joined: 18th Dec 2009
Location:
Posted: 3rd Aug 2010 01:22
Try this:



This code should work because:

It is active for all 3 sounds

It should stop a previously playing sound if a new one is played during another

Good luck!
Nbt
15
Years of Service
User Offline
Joined: 11th Oct 2009
Location: Behind you!!
Posted: 3rd Aug 2010 01:39
Oh cool TerrorNation, in game radio

AVPR
14
Years of Service
User Offline
Joined: 20th Jul 2010
Location:
Posted: 3rd Aug 2010 21:24
Thank you TerrorNation

TGC = AWESOME!!

Login to post a reply

Server time is: 2024-11-24 21:17:29
Your offset time is: 2024-11-24 21:17:29