-- // LUA Script - precede every function and global member with lowercase name of script + '_main' function smokegrey_emitter_init(e) -- // create\get particle image local imageFile = ParticlesLoadImage( "effectbank\\mydecals\\SmokeBall_Grey.png" ) -- // SmokeBall_Grey.png -- // create emitter local emitter = ParticlesGetFreeEmitter() -- // set the emitter values ParticlesAddEmitterEx( emitter, 1/4, 1, -- // id, anim speed, start random angle (0 no 1 yes) 0, 10, 0, 0, 10, 2, -- // offset: minX, minY, minZ, maxX, maxY, maxZ 0.3, 25, 2, 60, -- // scaleStart: min, max, scaleEnd: min, max -0.07, 0.2, -0.02, 0.06, 0.7, 0.04, -- // movementSpeed: minX, minY, minZ, movementSpeed: maxX, maxY, maxZ -0.1, 0.4, 1000, 6000, -- // rotateSpeed: minX, maxZ, lifeMin, lifeMax 40, 50, 0, 8, -- // alphaStart: min, max, alphaEnd: min, max 40, -- // frequency with which particles are spawned in milliseconds e, -- // particles will be spawned at the location of the given entity ( e or -1 ) 0, -- // particles spawned at limb if applicable ( or 0 ) imageFile, -- // specified imageFile value will be used ( see ParticlesLoadImage ) 64 ) -- // imageframe for custom images specifies number of frames ( 64, 16 or 4 ) end function smokegrey_emitter_main(e) end