108 {
109 super.OnAnimationPhaseStarted(animSource, phase);
110
111 #ifndef SERVER
112 #ifndef NO_GUI
113 switch (animSource)
114 {
115 case "seatdriver":
117 if (phase == 0.0)
118 {
119 sound.
SetSoundSet(
"Motorbike_01_Seat_FlipUp_SoundSet");
120 }
121 else
122 {
123 sound.
SetSoundSet(
"Motorbike_01_Seat_FlipDown_SoundSet");
124 }
125
128
129 SEffectManager.EffectRegister(sound);
131
132 break;
133 }
134 #endif
135 #endif
136 }
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.