224 {
225 super.OnAnimationPhaseStarted(animSource, phase);
226
227 #ifndef SERVER
228 switch (animSource)
229 {
230 case "wheelsideplate1":
231 case "wheelsideplate2":
232 EffectSound sound = CreateSoundForAnimationSource(animSource);
233 if (phase == 0)
234 {
235 sound.
SetSoundSet(
"Truck_01_Gear_Open_Side_Plate_SoundSet");
236 }
237 else
238 {
239 sound.
SetSoundSet(
"Truck_01_Gear_Close_Side_Plate_SoundSet");
240 }
241
244
245 SEffectManager.EffectRegister(sound);
247 break;
248 }
249 #endif
250 }
void SetSoundSet(string snd)
Set soundset for the sound.
void SetSoundFadeIn(float fade_in)
Set the sound fade in duration.
void SetSoundFadeOut(float fade_out)
Set the sound fade out duration.
bool SoundPlay()
Plays sound.