I am currently working on a script that scales a ParticleEmitter by it's rate, and the size of the emitter's parent.
I am stuck, however, on how to actually find the ratio between the BaseSize (the size of which you use for optimal particle setting), and the CurSize (the current size of the emitter's parent).
I am intending to multiply the Rate by the ratio of size difference.
Here is my code, although it does not scale correctly:
local x2,y2,z2 = curSize.X,curSize.Y,curSize.Z
local x1,y1,z1 = baseSize.X,baseSize.Y,baseSize.Z
local size1,size2 = x1*y1,x2*y2
local multiplier = size1/size2
print(multiplier)
for _,v in pairs (emitters) do
v.Rate = v.Rate*multiplier
end
Thank you!

1 comment
Thanks! I'll try that later. For ease of use, I just make the BaseRate = v.Rate.