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 / Continue Sound after Entity Destroyed

Author
Message
PFTLOGLMSGames
12
Years of Service
User Offline
Joined: 19th Aug 2012
Location:
Posted: 22nd Aug 2012 23:19
Hey guys, basically I have an Entity which plays a screaming sound when it is near the player, I also have it so when it is inview=1, the Entity is destroyed.

I notice that the sound cut out as soon as the Entity is destroyed and kills the atmosphere, been fudging around with it but cant seem to find a fix!

Any help would be appreciated, thanks!

PleaseForTheLoveOfGodLetMeSleep! Games

Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 23rd Aug 2012 00:56 Edited at: 23rd Aug 2012 00:56
there is a workaround actually , place a trigger zone or a dynamic entity , name it to whatever you want , script it to play the sound when activated (you have to write that yourself ) . replace sound=x in your entity's script with activateifused=1 , and place the entity's name in the if used field of the entity which you can find by right-clicking the entity .
and please do not make a new thread to continue from where the first one stopped . I was gonna reply to you there when I saw that post .

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
PFTLOGLMSGames
12
Years of Service
User Offline
Joined: 19th Aug 2012
Location:
Posted: 23rd Aug 2012 03:42
Yeah, sorry about that man, as im on a new account my posts/replys have to be 'verified' meaning they dont show up, I forget ive written them and end up double-posting!

I'll try your way in a bit, also, just another general question... Is there a script that controls the player, if so, where is it? Would like to have post-processing effects on start up, rather than in trigger zones, also, could add the screaming sound to the player script and it would continue to play.

Thank you very much!

PleaseForTheLoveOfGodLetMeSleep! Games

maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 23rd Aug 2012 10:39
there is no playerscript, but you can write those controls your own. the basic "playerscript" is setuplevel.fpi, located in "languagebank/.../mygame..." thats where you setup basic informations for (all) your levels.

PFTLOGLMSGames
12
Years of Service
User Offline
Joined: 19th Aug 2012
Location:
Posted: 25th Aug 2012 22:58
Brilliant, thanks man!

PleaseForTheLoveOfGodLetMeSleep! Games

Login to post a reply

Server time is: 2024-11-23 23:06:04
Your offset time is: 2024-11-23 23:06:04