• Continuous effect won't work on 2 entities at once.
    5 replies, posted
So basically, I've wanted to add bubble effect to my hats and the result - I can't get them to work at two hats at once, because the effect will only work on the first one until I delete it - then it'll start showing on the second hat. I've tried most of things, except making a table because I thought it'd be silly, but I've tried saving the effect in self.effectEmitter = EffectData(), tried saving it in a local variable and nothing really worked.
I know you don't like me, but try making a table anyway until you get a proper answer here.
Code maybe...? By the sounds of it, it is being called globally, so when there are two entities, it gets confused. But, as you haven't posted any code, I don't know.
How the effect code and how you create the effect.
NEVERMIND, Fixed it. The issue was that I was using a local lastThink which was the same for all the hats, I've used self.lastThink now and it's fine. THREAD CLOSED.
[del]It seems to me that you are creating the effect every frame or close to that rate, wouldn't be more sensible to create the effect once, pass entity instead of position, and create particles in EFFECT:Think?[/del] okay
Sorry, you need to Log In to post a reply to this thread.