Author Topic: Removed flying vehicle fields question  (Read 673 times)

what do each of these do for the most part:
Code: [Select]
   //Flying vehicle fields
      //jetSound = ;      //AudioProfile
      //engineSound = ;   //AudioProfile
?

From the looks of it, engineSound is the sound the engines make and jetSound is the sound it makes when it's flying.

interesting.... i might have to try this out :D

They're commented out for a reason.. idle sound functionality for vehicles is broken.


There must be some way to get the idle sounds to work, take Strato's planes, for example.

There must be some way to get the idle sounds to work, take Strato's planes, for example.

for the idle BG sound, you just use these datablocks:
Code: [Select]
//This is near the beginning of your script
datablock AudioDescription(vehicleNameLooping3d)
{
   volume   = 8.0;
   isLooping= true;

   is3D     = true;
   ReferenceDistance= 5.5;
   MaxDistance= 80.0;
   type     = $SimAudioType;
};
datablock AudioProfile(vehicleNameSound)
{
   filename    = "./engineSound.wav";
   description = vehicleNameLooping3d;
   preload = true;
};
and
Code: [Select]
//This is near the end

function vehicleNamevehicle::onadd(%this,%obj)
{
     %obj.PlayAudio(0,vehicleNameSound);
}