can someone give me an example of how to script emitter transparency. i've done v.ParticleEmitter.Transparency = NumberSequence.new(0,0,0) and it doesn't error, but it isn't making the particles transparent. i see on the numbersequence page they're explaining a loop with keypoints, but i can't get it working for me.

this doesn't work, but it's the best i could come up with from the explanation.

local n1 = 0

local sequence = NumberSequence.new(n1) if v.Name == "rocket1" then for _,keyPoint in pairs(sequence.Keypoints) do v.ParticleEmitter.Transparency = (keyPoint.Time,keypoint.Value,keypoint.Envelope) end end

1 comment

0

Are you trying to do what you'd do for envelope in the spline (Ranges)? Or just the "Base" transparency? I believe the base transparency can be set as any other number value. (Not Tested)