DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnAnimationPhaseStarted()

override void CarScript::OnAnimationPhaseStarted ( string animSource,
float phase )
inlineprotected

См. определение в файле Truck_01_Base.c строка 223

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
242 sound.SetSoundFadeIn(0.1);
243 sound.SetSoundFadeOut(0.1);
244
245 SEffectManager.EffectRegister(sound);
246 sound.SoundPlay();
247 break;
248 }
249 #endif
250 }
void SetSoundSet(string snd)
Set soundset for the sound.
Определения EffectSound.c:794
void SetSoundFadeIn(float fade_in)
Set the sound fade in duration.
Определения EffectSound.c:895
void SetSoundFadeOut(float fade_out)
Set the sound fade out duration.
Определения EffectSound.c:904
bool SoundPlay()
Plays sound.
Определения EffectSound.c:199

Перекрестные ссылки SEffectManager::EffectRegister(), EffectSound::SetSoundFadeIn(), EffectSound::SetSoundFadeOut(), EffectSound::SetSoundSet() и EffectSound::SoundPlay().