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 / Play audio once

Author
Message
Deviljanya
13
Years of Service
User Offline
Joined: 22nd Mar 2013
Location:
Posted: 13th Oct 2014 19:59
Hello, I'm new to the forum but I've been playing with FPSC for a while. I had no problems until now, I wanted to make an effect of a light breaking and playing a sound once, but everytime I walk into the zone it plays the audio again.

Should I use audio or Trigger zone? Or both? I would appreciate if someone could help me with this one.

Hi , im newb
Sinister Spoon
17
Years of Service
User Offline
Joined: 9th Sep 2008
Location:
Posted: 27th Nov 2014 16:32
Hi

What I would do personally is have the command to play the sound alter the state of the script, either by puuting into a state where
its doing nothing, or simply just add suspend to the end of the final statement (or destroy would work to I guess

see the code snippet for an example



So it waits in its default state of 0, where it does the player in zone check, plays the noise then moves to state=1, in state 1 smply have no action for it to perform or used suspend or destroy, the reason it will keep playing the sound is after it plays the sound the script resets itself to state=0, meaning the entire script will run again everytime you enter the zone

smoke em if you got em

Login to post a reply

Server time is: 2026-06-05 12:43:19
Your offset time is: 2026-06-05 12:43:19