233 {
234 super.OnAnimationPhaseStarted(animSource, phase);
235
236 #ifndef SERVER
237 switch (animSource)
238 {
239 case "wheelsideplate1":
240 case "wheelsideplate2":
241 EffectSound sound = CreateSoundForAnimationSource(animSource);
242 if (phase == 0)
243 {
244 sound.
SetSoundSet(
"Truck_01_Gear_Open_Side_Plate_SoundSet");
245 }
246 else
247 {
248 sound.
SetSoundSet(
"Truck_01_Gear_Close_Side_Plate_SoundSet");
249 }
250
253
254 SEffectManager.EffectRegister(sound);
256 break;
257 }
258 #endif
259 }
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.