| Blockland Forums > Modification Help |
| Removed flying vehicle fields question |
| << < (2/2) |
| mp7964:
There must be some way to get the idle sounds to work, take Strato's planes, for example. |
| Midway Sentinel:
--- Quote from: mp7964 on September 17, 2011, 07:43:43 PM ---There must be some way to get the idle sounds to work, take Strato's planes, for example. --- End quote --- for the idle BG sound, you just use these datablocks: --- Code: ---//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; }; --- End code --- and --- Code: ---//This is near the end function vehicleNamevehicle::onadd(%this,%obj) { %obj.PlayAudio(0,vehicleNameSound); } --- End code --- |
| Navigation |
| Message Index |
| Previous page |