HI, try this two scripts
this one for the first zone
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
-- Player Enters Zone
music_zone2 = 0
function play_music_zone1_init(e)
end
function play_music_zone1_main(e)
if g_Entity[e]['plrinzone']==1 then
--LoopSound(e,0) -- ( use this or PlaySound )
PlaySound(e,0)
--Destroy(e)
ActivateIfUsed(e)
end
if music_zone2 == 1 then
StopSound(e,0 )
end
end
this one for the second zone to stop music from zone one
-- LUA Script - precede every function and global member with lowercase name of script + '_main'
-- Player Enters Zone
music_zone2 = 0
function play_music_zone2_init(e)
end
function play_music_zone2_main(e)
if g_Entity[e]['plrinzone']==1 then
--LoopSound(e,0) -- (use this or PlaySound )
PlaySound(e,0)
music_zone2 = 1
--Destroy(e)
ActivateIfUsed(e)
end
end
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