Guest User

Untitled

a guest
Jul 5th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. function Create(self)
  2. self.fuzeTimer = Timer();
  3. end
  4.  
  5. function Update(self)
  6. if self.fuzeTimer:IsPastSimMS(200) then
  7. self.fuzeTimer:Reset();
  8. for actor in MovableMan.Actors do
  9. if actor.ClassName == "ACDropShip" or actor.ClassName == "ACRocket" then
  10. local dist = SceneMan:ShortestDistance(actor.Pos,self.Pos,true);
  11. if dist.Magnitude < 250 then
  12. local rand = math.random(1,3);
  13. if rand == 1 then
  14. self:GibThis();
  15. end
  16. end
  17. end
  18. end
  19. end
  20. end
Add Comment
Please, Sign In to add comment