function onStartup(self) local HeroShip = self:GetObjectsInGroup{ group = "BadShip"}.objects for i = 1, table.maxn (HeroShip) do if HeroShip[i]:GetLOT().objtemplate == 9530 then HeroShip[i]:PreloadAnimation{animationID = "lap_02", respondObjID = self} break end end end function onCollisionPhantom(self, msg) local player = msg.objectID local lap = player:VehicleGetCurrentLap{}.uiCurLap if player:GetID() == GAMEOBJ:GetControlledID():GetID() then if lap == 2 then local HeroShip = self:GetObjectsInGroup{ group = "BadShip"}.objects for i = 1, table.maxn (HeroShip) do if HeroShip[i]:GetLOT().objtemplate == 9530 then local Ship = HeroShip[i] Ship:PlayAnimation{animationID = "lap_02"} Ship:SetOffscreenAnimation{bAnimateOffscreen = true} break end end GAMEOBJ:DeleteObject(self) end end end