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

◆ OnAnimationPhaseStarted()

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

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

223 {
224 super.OnAnimationPhaseStarted(animSource, phase);
225
226 #ifndef SERVER
227 switch (animSource)
228 {
229 case "wheelsideplate1":
230 case "wheelsideplate2":
231 EffectSound sound;
232 if (phase == 0)
233 {
234 sound = SEffectManager.PlaySound("Truck_01_Gear_Open_Side_Plate_SoundSet", GetPosition(), 0.1, 0.1);
235 }
236 else
237 {
238 sound = SEffectManager.PlaySound("Truck_01_Gear_Close_Side_Plate_SoundSet", GetPosition(), 0.1, 0.1);
239 }
240
241 if (sound)
242 {
243 sound.SetAutodestroy(true);
244 }
245 break;
246 }
247 #endif
248 }
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Определения EffectSound.c:603
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

Перекрестные ссылки GetPosition, SEffectManager::PlaySound() и EffectSound::SetAutodestroy().