sound problem


(Teuthis) #1

I have an airplane in my map that once activated flies by and Drops an obj by a parachute. Now I want an airplane Sound coming with the airplane. the Sound of the parachute works but the airplane Sound doesn’t here an extraction of the script. maybe someone knows ahere the bug is. Prefab is originally from RayBan btw. I also added a voive announcement “airplane Sound should come” which is executed correctly. so the Sound should come. I also tested the Sound in another script section and it Plays there nice. so it’s not that the Sound just doesn’t work

airdrop1
{
spawn
{
wait 100
}

trigger activate
{
trigger airplane1 start_fly

  wait 200
  trigger airplane1 start_sound
  wm_announce "sound airplane should come"

}

trigger drop_obj
{
setstate box_obj1 default
setstate chute1 default
trigger box_obj1 drop
trigger chute1 chute_control
}

}

airplane1
{
spawn
{
wait 400
followspline 0 plane1_setup 50000 length 32 wait
}

trigger start_fly
{
followspline 0 pspline_start 500 wait length 32
trigger self drop_obj

}

trigger drop_obj
{
trigger airdrop1 drop_obj
followspline 0 pspline_drop 500 wait length 32
remove // no need for a plane after this… so we get rid of it
}

trigger start_sound
{
stopsound
playsound sound/vo/teuthonia/plane.wav volume 10000 //sound of airplane
}

trigger stop_sound
{
stopsound
}
}


(KeMoN) #2

This is a totally uneducated guess on my side. I had a look at chruker.

playsound <soundname> [looping] [volume <sound_volume>]

I see two things that you could try.
First the [looping]. Maybe the sound is played only once?

Second the [volume <sound_volume>]. In a section a little lower Chruker provides the range for volume. Maybe 10000 is simply too loud?


(Teuthis) #3

thanks. tried a lod of volumes and also with and without Looping, all with the same poor result. Finally I fixed it non-script wise by connecting a target_Speaker with the same targetname at the Trigger_once which activates the airplane. result is that the Trigger_once activates both, the plane and the Speaker at the same time.

thanks for your Input. appreciate the help and the time you invested.