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 / Whats wrong with my script?

Author
Message
Siphon_Studios
11
Years of Service
User Offline
Joined: 20th Jan 2013
Location: @ the Mr. Coffee
Posted: 26th Jan 2013 02:12
Im trying to make this script for a sound zone. It is supposed to play audio one time and then "destroy" itself or make it so it wont play again. A one-time only thing, ya know?

but i used this script, and nothing happened. No sound, nothing.



Please help me to correct whatever problem there is?

THANKS!
mastercheif 193
17
Years of Service
User Offline
Joined: 27th Feb 2007
Location: Outer Heaven
Posted: 26th Jan 2013 07:48 Edited at: 26th Jan 2013 07:48
I'm a beginner at scripting also, but I did notice that you didn't put the file extension after the sounds name. I am guessing it is a .wav file so just add that to your sound like this.



This is my little 2 cents.

"It's not who I am underneath, but what I do that defines me" -Batman Begins
Siphon_Studios
11
Years of Service
User Offline
Joined: 20th Jan 2013
Location: @ the Mr. Coffee
Posted: 26th Jan 2013 09:16
Good catch mastercheif 193, ill fix it and see if anything changes.

My end goal is to get the audio to play once, fully, then terminate itself.
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 26th Jan 2013 20:33
here is my solution:


It should work

But for your next try:
state=0:state=1 does not go to state=2:destroy
look at the numbers


Siphon_Studios
11
Years of Service
User Offline
Joined: 20th Jan 2013
Location: @ the Mr. Coffee
Posted: 26th Jan 2013 20:47
OHHHHHHHHHH

That makes sense. Ok, I thought they ment like: input 0, start command; input 1, do this; input 2, do this; input 3, end command:
That sorta thing, but ok. Yeah, thanks Corno. It should help.

Thanks!
Siphon_Studios
11
Years of Service
User Offline
Joined: 20th Jan 2013
Location: @ the Mr. Coffee
Posted: 26th Jan 2013 20:56
AHA! Thank you Corno!!!! IT WORKS!

Ahahahaha YES!

Thanks man!

Login to post a reply

Server time is: 2024-11-23 17:32:22
Your offset time is: 2024-11-23 17:32:22