I have a bot that Ejects shells from his gun when he fires.
He uses an SMG, and is coded to fire in large bursts, with small recovery times. As you can imagine, a pool of shells can be made quite fast with such a bullet hose-type system, which can quickly lag the game.
I was wondering if there was a way to reduce lag with the effect by setting a despawn timer or something on the ejected shells, because they hang around for quite a while.
i use the following, if it's needed:
[CODE]local moreeffectdata = EffectData()
moreeffectdata:SetOrigin(self:GetOwner():GetPos())
moreeffectdata:SetAngles(self:GetRight():Angle())
moreeffectdata:SetScale(50)
util.Effect("RifleShellEject", moreeffectdata)
[/CODE]
Sorry, you need to Log In to post a reply to this thread.