in the separate lua file:
[lua]local particleData = {}
particleData.getParticle1 = function()
local particle1Params = { [Your parameters here] }
return particle1Params
end
particleData.getParticle2 = function()
local particle2Params = { [Your parameters here] }
return particle2Params
end
return particleData[/lua]
And, assuming you use Particle Candy, you call it like this:
[lua]local particleData = require( “name_of_your_particle_data_file” )
particles.CreateEmitter(name, x, y, rotation, visible, loop, autoDestroy)
particles.CreateParticleType ( “particle1”, particleData.getParticle1() )[/lua] [import]uid: 181948 topic_id: 33806 reply_id: 134424[/import]