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 / New Objectives

Author
Message
Impaler
16
Years of Service
User Offline
Joined: 20th May 2008
Location: Everywhere...at the same time
Posted: 4th Jul 2009 22:54
This a script I wrote to show a New Obectives message and play a beep sound when the player was in a trigger zone. For some reason. Entering the trigger zone brings up the red "blood" hud and plays no noise at all. Can someone look over my script and see if I did something wrong?

Freakon
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location:
Posted: 4th Jul 2009 23:27 Edited at: 4th Jul 2009 23:35
your first hud name is Newobjectives.png, the rest are newobjective

you are missing an "s" from the hudname=newobjective,

they need to be the same the whole way through, add an "s" to the other newobjective names.

Also the sound needs to be plrsound=audiobank\materials\beep.wav

Impaler
16
Years of Service
User Offline
Joined: 20th May 2008
Location: Everywhere...at the same time
Posted: 5th Jul 2009 00:19
Newobjectives.png is the file name and "newobjective" is what I'm calling the HUD. They don't have be the same. I was under the impression that sound= and plrsound= did the same thing but I will try it anyway. Thanks for your advice though.
Freakon
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location:
Posted: 5th Jul 2009 07:13 Edited at: 5th Jul 2009 07:20
sounds like the script is not finding the file,

try adding languagebank/english/ before your gamecore?? )obviously with backslashes...

And why not add the sound to the trigger zone rather than script it? or do you need the hud to display for the length of the sound file?
Impaler
16
Years of Service
User Offline
Joined: 20th May 2008
Location: Everywhere...at the same time
Posted: 5th Jul 2009 17:16
I'll try expanding the directory and see if that works. I only need the sound to beep at the start of the HUD being show so your sugestion will work
Hockeykid
DBPro Tool Maker
17
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 5th Jul 2009 18:26 Edited at: 5th Jul 2009 21:15


there you go the hud should show right now and the sound should play, It is important to remember that its "desc =" not "desc" this is what was causing your hud problem and the sound should work now (i use plrsound=)

Freakon
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location:
Posted: 5th Jul 2009 20:08
its always the simplest things!!

If your copying out hockeykids snipet dont forget to add in the backslashes!

Sorry I didnt spot the = sooner ...

Regards!
A
Hockeykid
DBPro Tool Maker
17
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 5th Jul 2009 21:15
Quote: "If your copying out hockeykids snipet dont forget to add in the backslashes!
"


oops, put them in.

Freakon
15
Years of Service
User Offline
Joined: 24th Feb 2009
Location:
Posted: 6th Jul 2009 00:00

Login to post a reply

Server time is: 2024-11-25 03:30:40
Your offset time is: 2024-11-25 03:30:40