Eh guys, does
GlobalSound is working for you?,for me does not.
I've working in script to achive the goal Cylo is looking for, but don't get globalsound commands working.
Even I've tried
globalsoundtests.lua, just in case, but it does not work. Please place some barrel, attach
globalsoundtests script and test it, let me know if I'm the only one.
This is what I've so far...
function sound_video_init(e)
LoadGlobalSound ( "audiobank\\stories\\theescape\\Story1.wav", 1 )
end
function sound_video_main(e)
if g_Entity[e]['plrinzone']==1 then
if GetGlobalSoundExist ( 1 ) == 1 then
PlayGlobalSound ( 1 )
SetGlobalSoundSpeed ( 1, 66000 )
SetGlobalSoundVolume ( 1, 90 )
Prompt(GetGlobalSoundPlaying ( 1 ) )
end
if GetGlobalSoundPlaying ( 1 ) == 0 then
StopGlobalSound ( 1 )
Prompt("sound1: " ..GetGlobalSoundPlaying ( 1 ) )
PlayVideo(e,1)
ActivateIfUsed(e) -- if you want to use to activa something, if so, don't miss to set the item name in the ifused field, via properties.
Destroy(e)
end
end --plrinzone
end --main
3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz
OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics