Before beginning: sorry for my poor english
So, I would like to play a sound in a specific place of my SH map, but nothing doesn't work
After have try without succes the AA method, I've read a lot of posts of jv_map which explain that for playing a custom sound in SH, we only need to make a custom ubersound with sound aliases...
So i've made this:
Code: Select all
main:
level.script = maps/dm/ste-mere-eglise.scr
// set scoreboard messages
setcvar "g_obj_alliedtext1" " [NER]"
setcvar "g_obj_alliedtext2" "NEW EUROPEAN REGIMENT"
setcvar "g_obj_alliedtext3" " www.ner-clan.net"
setcvar "g_obj_axistext1" "June 6, 1944, 01.00 pm"
setcvar "g_obj_axistext2" "Saint-Mere-Eglise, Normandy"
setcvar "g_obj_axistext3" " *An exclusive NER map*"
setcvar "g_scoreboardpic" "Ste-mere-2"
level waitTill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
exec global/door_locked.scr::lock
level.fogplane = 13000
$world farplane level.fogplane
$world farplane_color ( 0.15 0.10 0.10)
level waittill spawn
thread chant_partisans
$airgun1 TurnOn
$airgun2 TurnOn
$airgun3 TurnOn
$airgun4 TurnOn
$airgun5 TurnOn
$airgun6 TurnOn
end
chant_partisans:
while(1)
{
$soundtrigger triggerable
$soundtrigger waittill trigger
$chant playsound ts_chant
$soundtrigger nottriggerable
wait 150 // dur?e du chant des partisans
}
EndThis files just contains these lines:
aliascache ts_chant sounds/amb_SME/chant.wav soundparms 3.0 0.0 1.00 0.00 400 1500 auto loaded maps "ste-mere-eglise"
In game, When I activate the trigger "soundtrigger", I've got this message in console "... ts_chant need an alias in ubesround.scr or...."
And no other error messages
I think I've tried all I could for playing this putain de sound
