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 Product Chat / Playing sound as long as someone is inside a zone?

Author
Message
NKM
16
Years of Service
User Offline
Joined: 3rd Feb 2010
Location:
Posted: 3rd Feb 2010 10:49
Hello.

I have recently started using this program and once I got use to the interface I found it rather productive. The only issue I currently have is with sound files. I want to be able to have a sound file play one while someone is within a zone.

Mainly, what I wanted to ask, is it possible to even have a sound file stop playing once it starts? If so, how? I've been trying to get this to work for quite some time.

Thank you for any assistance you can provide.
GreenDixy
17
Years of Service
User Offline
Joined: 24th Jul 2008
Location: Toronto
Posted: 3rd Feb 2010 13:13
I posted a idea i am not sure if you can use it this way i attached a image

===================
No life, Lots of love, 2 Kids, God save me LOL
Shadowtroid
16
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: nope
Posted: 3rd Feb 2010 13:16
I think there is a script that loops it while in the zone.

If not then script it.

"And we played the first thing that came to our heads...Just so happened to be... the best song in the world...

it was the best song in the world..."
Marc Steene
FPSC Master
20
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 3rd Feb 2010 13:25 Edited at: 3rd Feb 2010 15:28
:state=0:state=1
:state=1,plrwithinzone=1:sound=$0
:state=1,plrwithinzone=0:stopsound


[b]FPSC MIGRATION: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
Shadowtroid
16
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: nope
Posted: 3rd Feb 2010 13:30
Yes but with that it'll stop playing forever, even if you go back in.

What about

:state=0:state=1
:state=1,plrwithinzone=1:sound=$0
:state=1,plrwithinzone=0:stopsound

Would that work? Or is the stopsound command more powerful then I thought?

"And we played the first thing that came to our heads...Just so happened to be... the best song in the world...

it was the best song in the world..."
Marc Steene
FPSC Master
20
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 3rd Feb 2010 15:29
Ah, my understanding was that he wanted a script which would play a soundfile when entered and not play again. I edited my script to account for it.


[b]FPSC MIGRATION: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
Shadowtroid
16
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: nope
Posted: 3rd Feb 2010 15:52
Maybe he did. I'm not sure.

Just noting that.

"And we played the first thing that came to our heads...Just so happened to be... the best song in the world...

it was the best song in the world..."
NKM
16
Years of Service
User Offline
Joined: 3rd Feb 2010
Location:
Posted: 3rd Feb 2010 20:53
No, that's perfect, thank you.

Apologies, I should have been more observational with the default scripts. I never thought Loopinscript would contain this function.

Login to post a reply

Server time is: 2026-07-21 07:02:58
Your offset time is: 2026-07-21 07:02:58