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 {
244 }
245 break;
246 }
247 #endif
248 }
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
class JsonUndergroundAreaTriggerData GetPosition