-- LUA Script - precede every function and global member with lowercase name of script + '_main' function toonfire_emitter_init(e) local imageFile = ParticlesLoadImage( "effectbank\\mydecals\\ToonFire.png" ) --\\ FireBall_Hot_32.dds local emitter = ParticlesGetFreeEmitter() ParticlesAddEmitterEx( emitter, 1, 1, -- \\ id, anim speed, start random angle (0 no 1 yes) 0, 0, 0, 0, 0, 0, -- \\ offset: minX, minY, minZ, maxX, maxY, maxZ 1, 5, -- \\ scaleStart: min, max, 10, 25, -- \\ scaleEnd: min, max 0.01, 0.01, 0.01, -- \\ movementSpeed: minX, minY, minZ 0.06, 0.3, 0.06, -- \\ movementSpeed: maxX, maxY, maxZ -0.1, 0.4, -- \\ rotateSpeed: minX, maxZ 500, 1500, -- \\ rotateSpeed: lifeMin, lifeMax 50, 80, 30, 40, -- \\ alphaStart: min, max, alphaEnd: min, max 1, -- \\ 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 ) 32 ) -- \\ imageframe for custom images specifies number of frames ( 64, 16 or 4 ) end function toonfire_emitter_main(e) end