Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Create(self)
- self.fuzeTimer = Timer();
- end
- function Update(self)
- if self.fuzeTimer:IsPastSimMS(200) then
- self.fuzeTimer:Reset();
- for actor in MovableMan.Actors do
- if actor.ClassName == "ACDropShip" or actor.ClassName == "ACRocket" then
- local dist = SceneMan:ShortestDistance(actor.Pos,self.Pos,true);
- if dist.Magnitude < 250 then
- local rand = math.random(1,3);
- if rand == 1 then
- self:GibThis();
- end
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment