16
Modification Help / Re: Coding help on an EngineSound.cs file?
« on: December 05, 2021, 07:11:29 PM »The code you are looking for are lines 904 and 905 in gunship_helicopter.csCode: [Select]
%vehicle.playAudio(0, HelicopterGunshipSound);
%vehicle.playAudio(1, HelicopterGunshipDistantSound);
EngineSounds uses a datablock attribute ES_AudioSlot to determine which audio slot to play to, so you can try putting ES_AudioSlot = 2; in the AudioProfile datablock for the engine sound you're trying to add. Or, you can try changing HelicopterGunshipDistantSound to use slot 2, since ES_AudioSlot defaults to 1 if not set
it sounds like you're playing the audio loops on the same slot - you need to assign the sounds to different slots (4 slots are available, 0 to 3)
have one sound play on slot 0, and the other one on slot 1. and also probably post the code where the sounds are attached to the vehicle.
Thank you all for your help. Problem solved. Locking topic.
