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 / sound zone respawn after delay

Author
Message
bobomate
13
Years of Service
User Offline
Joined: 22nd Nov 2011
Location:
Posted: 23rd Nov 2011 05:43
Hi I have been trying to make my sound zones respawn after they have been used after a delay of two minutes but can't get it to work. Is it possible to do this without a custom script or will I need to make a script. If I do need a custom script can you help me because I have no skills in scripting. Thanks
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 23rd Nov 2011 10:18 Edited at: 24th Nov 2011 12:43
you cannot respawn triggerzones.

but you can setup a custom script with an etimer so it starts again 2 minutes later.

:state=0:state=0
:state=0,plrwithinzone=1:sound=files/audiobank/XXXXX.wav,state=1
:state=1:etimerstart,state=2
:state=2,etimergreater=120000:state=0


something like this.
or use the soundloop-script out of stock and setup a sound that has a pause up to 2 minutes. depends on what you wanna get with this script.
bobomate
13
Years of Service
User Offline
Joined: 22nd Nov 2011
Location:
Posted: 23rd Nov 2011 20:22
wait im confused. So if I put that script you have as the main script for my sound zone it will still work if I walk through it a second time two minutes later?
maho76
13
Years of Service
User Offline
Joined: 31st May 2011
Location: universe-hub, playing the flute
Posted: 24th Nov 2011 10:52 Edited at: 24th Nov 2011 12:40
yeah, should be^^

script explanation:

when player enters zone, a sound (files/audiobank/XXXXX.wav) is played once and an etimer starts. timer resets the script to the beginning (state=0) after 2 minutes (120.000 milliseconds).

dont know if i used the right commands (wrong computer and not that experienced in script-vocabularies ), but basically this should work in the way you need.

Login to post a reply

Server time is: 2024-11-24 03:23:46
Your offset time is: 2024-11-24 03:23:46