Re: A gib timer for AEmitters acting as rounds?
Easy peasy;
Code:
function Create(self)
self.lifeTimer = Timer();
self.lifeTime = 400+math.random(-200,200)
end
function Update(self)
if self.lifeTimer:IsPastSimMS(self.lifeTime) then self:GibThis();
end
end
Replace the "400+math.random(-200,200)" with the desired lifetime of the AEmitter in milliseconds, say... 2000 or whatever. You'll probably want to set it slightly less than the actual .ini-specified LifeTime just to be on the safe side.
(There's probably a slightly more efficient way to set it by getting the lifetime from the ini itself somehow, but I'm not sure. self.LifeTime instead of self.lifeTime, maybe?)