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 / Help with playing sounds?

Author
Message
Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 16th Aug 2011 23:09
So here is the script im trying to use. What it does is it displays an image, freezes the player, and is Supposed to play a sound. It does not do any of those things.



Here is the original script i had to display an image and freeze the play but not play a sound:



What did i do wrong? It looks like it should work, i don't know what is wrong with it.. Can anyone help? Thanks!

Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 17th Aug 2011 08:16
Try this:

:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore/huds/Note.png,hudname=objectives,hudhide=1,hudmake=display,state=1



You need to play the sound when the HUD is shown and not where you define the HUD, also you did not have a second ":" in the line beginning "state=1"

Hope this works.

Desecrated Studios
13
Years of Service
User Offline
Joined: 16th Jan 2011
Location: Kirtona
Posted: 17th Aug 2011 08:51
Thank you for that Ched! I have been trying to figure out what is wrong, and of course it would be that easy

Thanks again!

Login to post a reply

Server time is: 2024-11-24 05:54:37
Your offset time is: 2024-11-24 05:54:37