250 {
251 super.OnAnimationPhaseStarted(animSource, phase);
252
253 #ifndef SERVER
254 #ifndef NO_GUI
255 switch (animSource)
256 {
257 case "wheelsideplate1":
258 case "wheelsideplate2":
260 if (phase == 0)
261 {
262 sound.
SetSoundSet(
"Truck_01_Gear_Open_Side_Plate_SoundSet");
263 }
264 else
265 {
266 sound.
SetSoundSet(
"Truck_01_Gear_Close_Side_Plate_SoundSet");
267 }
268
271
272 SEffectManager.EffectRegister(sound);
274 break;
275 }
276 #endif
277 #endif
278 }
EffectSound CreateSoundForAnimationSource(string animSource)
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.