// Cleanup FX script for MICS. void main() { object oTarget = OBJECT_SELF; object oItem = GetLocalObject(oTarget,"ASG_BUILDITEM_ITEM"); object oFour = GetLocalObject(oTarget,"MICS_FX4"); object oThree = GetLocalObject(oTarget,"MICS_FX3"); object oTwo = GetLocalObject(oTarget,"MICS_FX2"); object oOne = GetLocalObject(oTarget,"MICS_FX1"); object oZero = GetLocalObject(oTarget,"MICS_FX0"); if (GetIsObjectValid(oFour)) DestroyObject(oFour); if (GetIsObjectValid(oThree)) DestroyObject(oThree); if (GetIsObjectValid(oTwo)) DestroyObject(oTwo); if (GetIsObjectValid(oOne)) DestroyObject(oOne); if (GetIsObjectValid(oZero)) DestroyObject(oZero); if (GetIsObjectValid(oItem)) DeleteLocalObject(oTarget,"ASG_BUILDITEM_ITEM"); PlaySound("as_mg_frstmagic1"); }