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

◆ OnAnimationPhaseStarted()

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

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

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
251 sound.SetSoundFadeIn(0.1);
252 sound.SetSoundFadeOut(0.1);
253
254 SEffectManager.EffectRegister(sound);
255 sound.SoundPlay();
256 break;
257 }
258 #endif
259 }
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().