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 / Displaying HUD image until sound stops playing?

Author
Message
Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 6th Sep 2007 14:49
Does anyone know how I can make it so when you step in a trigger zone, It plays a noise and displays an hud image, top right on the screen? but when the sound stops playing, I want the hud image not to show.

I want to make a system a bit like the codec system in metal gear solid, but I want the characters image to appear on the screen only when the sound is playing, because if i step back in the trigger zone the hud images will show. I want images like this to show top right:


then after the sound is playing (person talking) I want the hud not to show anymore. I'm not that great at scripting so if someone could lend me a hand and give me a few ideas, then maybe I could make this work.

Thanks!

Lewis From OsborneCreations.co.uk
Lewis
VBOTB Developer '10
19
Years of Service
User Offline
Joined: 16th Mar 2005
Location: Queensland, Australia
Posted: 8th Sep 2007 01:07
can someone at least help me out on some of it?

Lewis From OsborneCreations.co.uk
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 8th Sep 2007 01:27
There is no ENDOFSOUND or SOUNDFINISHED command to work with here. If you know the length of the sound in seconds, simply create a timer which starts at the start of the sound/show of the hud and when it ends, unshow the hud.

Best.

I'm sorry, my answers are limited. You must ask the right question.

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 8th Sep 2007 01:27 Edited at: 8th Sep 2007 01:28
STUPID double post!!!

Best.

I'm sorry, my answers are limited. You must ask the right question.

Login to post a reply

Server time is: 2024-11-23 23:36:34
Your offset time is: 2024-11-23 23:36:34