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 / Help! cant stop sounds

Author
Message
Skillful Mmd
16
Years of Service
User Offline
Joined: 22nd Feb 2008
Location:
Posted: 22nd Feb 2008 15:31
hi, this is my first post so i hopes it's in the right place. anyway i wanted music to play when i went into a room so i used the sound zone and it all works alright but when i leave the room the music still plays what script do i need to stop the music when i go so far from the room.

Attachments

Login to view attachments
TZap
19
Years of Service
User Offline
Joined: 29th Aug 2005
Location:
Posted: 23rd Feb 2008 12:18 Edited at: 23rd Feb 2008 12:22
Try this main script for the Sound Zone. The sound will loop whilst in the zone and stop when exiting zone. I use this for an alarm sound. On re-entering where the zone was, the sound won't play again. If you do want the sound to play again, just remove the destroy action.

;Artificial Intelligence Script

;Header

desc = Sound Looped In Zone (while player inside)

;Triggers

:state=0,plrwithinzone=1:state=1,loopsound=$0
:state=1,plrwithinzone=0:state=0,stopsound,destroy
Skillful Mmd
16
Years of Service
User Offline
Joined: 22nd Feb 2008
Location:
Posted: 24th Feb 2008 00:27
Thank's aloy i was beging tp think no one would help i owe you 1!

Login to post a reply

Server time is: 2024-10-10 17:25:17
Your offset time is: 2024-10-10 17:25:17