Scripts / stopping current playing music and playing new music

Author
Message
Chrissell
11
Years of Service
User Offline
Joined: 2nd Apr 2013
Location:
Posted: 23rd Mar 2020 20:20
I am wondering if anyone can help? Im using SoundZones in gameguru and when I enter the first zone It plays track 1 then when I go into another sound zone its starts a new music on top of the one currently playing. I want the old music to stop when I enter the second soundzone and play only the new sound?
Do I need to change the script in .Lua?
Thanks
Chris
C.R.Sellen
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 23rd Mar 2020 22:02 Edited at: 23rd Mar 2020 22:07
HI, try this two scripts
this one for the first zone


this one for the second zone to stop music from zone one


haven't test it but i think it will work.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
Chrissell
11
Years of Service
User Offline
Joined: 2nd Apr 2013
Location:
Posted: 24th Mar 2020 10:39
Thanks PCS that works great! thanks for the help
C.R.Sellen
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 24th Mar 2020 17:05
Glad i could help someone.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11

Login to post a reply

Server time is: 2024-04-24 23:56:42
Your offset time is: 2024-04-24 23:56:42