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 / Play a sound one time in a zone

Author
Message
Tony1991
17
Years of Service
User Offline
Joined: 12th Feb 2007
Location: United States
Posted: 23rd Aug 2009 01:23
Hello, It's been a few years since I wrote a script for FPSC and I forgot how to make a sound play only one time in a zone.

(I.E. player walks through the zone and a voice says "oh look a zombie" but only says it that one time, not every time I go through the zone.)

Thanks in advance.

<img src="http://67.191.178.52/images/TGC%20Sig.bmp">
Metal Devil123
16
Years of Service
User Offline
Joined: 13th Jul 2008
Location: Suomi, Finland
Posted: 23rd Aug 2009 16:52
Just put a sound zone. And if you mean a trigger zone, then don't use sound on the trigger zone and put a sound zone on top of the trigger zone to play the sound.


PS: -.- ,,|,
Marc Steene
FPSC Master
18
Years of Service
User Offline
Joined: 27th Mar 2006
Location: Bahrain
Posted: 23rd Aug 2009 19:04
:state=0:state=1
:state=1,plrwithinzone=1:sound=$0,state=2
:state=2:state=2

Migration Discussion Thread: http://forum.thegamecreators.com/?m=forum_view&t=142497&b=21
Piracy Discussion Thread:
http://forum.thegamecreators.com/?m=forum_view&t=142774&b=21

Login to post a reply

Server time is: 2024-11-25 06:45:53
Your offset time is: 2024-11-25 06:45:53