lowflyer450 0 Posted May 1, 2007 I have looking for smoke and fire effects and i have found the CSL _Prtcl_Param_Utility. The Utility works fine and the demo with the Utility works. Now i have create a missiion where a few houses are destroyed and i want a smoke effect on every house bud i can find it, i can only an smoke effect on one house and use the script from the utility. I have change the script like this: _particleSource = "#particlesource" createVehicleLocal getpos SmokeLogic; _particleSource setParticleCircle [0, [0, 0, 0]]; _particleSource setParticleRandom [0, [1.75, 1.75, 0], [0.54, 0.54, 0], 0, 0.25, [0.05, 0.05, 0.05, 0.05], 0, 0]; _particleSource setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 5, 1], "", "Billboard", 1, 10, [0, 0, 0], [0, 0, 0], 1, 1.2, 1, 0.1, [3.5, 3.5], [[0.7, 0.7, 0.7 ,0.4], [0.5, 0.5, 0.5, 0.2], [0.2, 0.2, 0.2, 0]], [0, 1], 1, 0, "", "", SmokeLogic]; _particleSource setDropInterval 0.04; _particleSource = "#particlesource" createVehicleLocal getpos SmokeLogic; _ParticleSource setParticleCircle [0.5, [0.5, 0, 0.5]]; _ParticleSource setParticleRandom [0, [0.3, 0.25, 0], [0.175, 0.175, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0]; _ParticleSource setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 1, 8], "", "Billboard", 1, 12.5, [0, 0, 0], [0, 0, 0.75], 0, 10, 7.9, 0.075, [1.2, 2, 4], [[0.1, 0.1, 0.1, 1], [0.25, 0.25, 0.25, 0.5], [0.5, 0.5, 0.5, 0]], [0.08], 1, 0, "", "", SmokeLogic]; _ParticleSource setDropInterval 0.05; _particleSource = "#particlesource" createVehicleLocal getpos SmokeLogic1; _particleSource setParticleCircle [0, [0, 0, 0]]; _particleSource setParticleRandom [0, [1.75, 1.75, 0], [0.54, 0.54, 0], 0, 0.25, [0.05, 0.05, 0.05, 0.05], 0, 0]; _particleSource setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 5, 1], "", "Billboard", 1, 10, [0, 0, 0], [0, 0, 0], 1, 1.2, 1, 0.1, [3.5, 3.5], [[0.7, 0.7, 0.7 ,0.4], [0.5, 0.5, 0.5, 0.2], [0.2, 0.2, 0.2, 0]], [0, 1], 1, 0, "", "", SmokeLogic1]; _particleSource setDropInterval 0.04; _particleSource = "#particlesource" createVehicleLocal getpos SmokeLogic1; _ParticleSource setParticleCircle [0.5, [0.5, 0, 0.5]]; _ParticleSource setParticleRandom [0, [0.3, 0.25, 0], [0.175, 0.175, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0]; _ParticleSource setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 1, 8], "", "Billboard", 1, 12.5, [0, 0, 0], [0, 0, 0.75], 0, 10, 7.9, 0.075, [1.2, 2, 4], [[0.1, 0.1, 0.1, 1], [0.25, 0.25, 0.25, 0.5], [0.5, 0.5, 0.5, 0]], [0.08], 1, 0, "", "", SmokeLogic1]; _ParticleSource setDropInterval 0.05; _particleSource = "#particlesource" createVehicleLocal getpos SmokeLogic2; _particleSource setParticleCircle [0, [0, 0, 0]]; _particleSource setParticleRandom [0, [1.75, 1.75, 0], [0.54, 0.54, 0], 0, 0.25, [0.05, 0.05, 0.05, 0.05], 0, 0]; _particleSource setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 5, 1], "", "Billboard", 1, 10, [0, 0, 0], [0, 0, 0], 1, 1.2, 1, 0.1, [3.5, 3.5], [[0.7, 0.7, 0.7 ,0.4], [0.5, 0.5, 0.5, 0.2], [0.2, 0.2, 0.2, 0]], [0, 1], 1, 0, "", "", SmokeLogic2]; _particleSource setDropInterval 0.04; _particleSource = "#particlesource" createVehicleLocal getpos SmokeLogic2; _ParticleSource setParticleCircle [0.5, [0.5, 0, 0.5]]; _ParticleSource setParticleRandom [0, [0.3, 0.25, 0], [0.175, 0.175, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0]; _ParticleSource setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 1, 8], "", "Billboard", 1, 12.5, [0, 0, 0], [0, 0, 0.75], 0, 10, 7.9, 0.075, [1.2, 2, 4], [[0.1, 0.1, 0.1, 1], [0.25, 0.25, 0.25, 0.5], [0.5, 0.5, 0.5, 0]], [0.08], 1, 0, "", "", SmokeLogic2]; You see it's a smoke effect with wite and black smoke, there are three smokelogic,smokelogic1 and smokelogic2. Then i put in the game three game logic with the names smokelogic, smokelogic1 and smokelogic2, then i place three triggers, the conditions is garbage = [] ExecVM "smokemain.sqf" and close to the gamelogic. It works, bud only smokelogic will be work and the others, smokelogic1 and smokelogic2 does'nt work. can someone help me with this trouble i think it's the trigger because the trigger calls the smokemain.sqf. Thanks Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted May 1, 2007 Your _particleSource variables have to be different for each particle source. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _particleSource_1_1 = "#particlesource" createVehicleLocal getpos SmokeLogic; _particleSource_1_1 setParticleCircle [0, [0, 0, 0]]; _particleSource_1_1 setParticleRandom [0, [1.75, 1.75, 0], [0.54, 0.54, 0], 0, 0.25, [0.05, 0.05, 0.05, 0.05], 0, 0]; _particleSource_1_1 setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 5, 1], "", "Billboard", 1, 10, [0, 0, 0], [0, 0, 0], 1, 1.2, 1, 0.1, [3.5, 3.5], [[0.7, 0.7, 0.7 ,0.4], [0.5, 0.5, 0.5, 0.2], [0.2, 0.2, 0.2, 0]], [0, 1], 1, 0, "", "", SmokeLogic]; _particleSource_1_1 setDropInterval 0.04; _particleSource_1_2 = "#particlesource" createVehicleLocal getpos SmokeLogic; _particleSource_1_2 setParticleCircle [0.5, [0.5, 0, 0.5]]; _particleSource_1_2 setParticleRandom [0, [0.3, 0.25, 0], [0.175, 0.175, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0]; _particleSource_1_2 setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 1, 8], "", "Billboard", 1, 12.5, [0, 0, 0], [0, 0, 0.75], 0, 10, 7.9, 0.075, [1.2, 2, 4], [[0.1, 0.1, 0.1, 1], [0.25, 0.25, 0.25, 0.5], [0.5, 0.5, 0.5, 0]], [0.08], 1, 0, "", "", SmokeLogic]; _particleSource_1_2 setDropInterval 0.05; _particleSource_2_1 = "#particlesource" createVehicleLocal getpos SmokeLogic1; _particleSource_2_1 setParticleCircle [0, [0, 0, 0]]; _particleSource_2_1 setParticleRandom [0, [1.75, 1.75, 0], [0.54, 0.54, 0], 0, 0.25, [0.05, 0.05, 0.05, 0.05], 0, 0]; _particleSource_2_1 setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 5, 1], "", "Billboard", 1, 10, [0, 0, 0], [0, 0, 0], 1, 1.2, 1, 0.1, [3.5, 3.5], [[0.7, 0.7, 0.7 ,0.4], [0.5, 0.5, 0.5, 0.2], [0.2, 0.2, 0.2, 0]], [0, 1], 1, 0, "", "", SmokeLogic1]; _particleSource_2_1 setDropInterval 0.04; _particleSource_2_2 = "#particlesource" createVehicleLocal getpos SmokeLogic1; _particleSource_2_2 setParticleCircle [0.5, [0.5, 0, 0.5]]; _particleSource_2_2 setParticleRandom [0, [0.3, 0.25, 0], [0.175, 0.175, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0]; _particleSource_2_2 setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 1, 8], "", "Billboard", 1, 12.5, [0, 0, 0], [0, 0, 0.75], 0, 10, 7.9, 0.075, [1.2, 2, 4], [[0.1, 0.1, 0.1, 1], [0.25, 0.25, 0.25, 0.5], [0.5, 0.5, 0.5, 0]], [0.08], 1, 0, "", "", SmokeLogic1]; _particleSource_2_2 setDropInterval 0.05; _particleSource_3_1 = "#particlesource" createVehicleLocal getpos SmokeLogic2; _particleSource_3_1 setParticleCircle [0, [0, 0, 0]]; _particleSource_3_1 setParticleRandom [0, [1.75, 1.75, 0], [0.54, 0.54, 0], 0, 0.25, [0.05, 0.05, 0.05, 0.05], 0, 0]; _particleSource_3_1 setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 5, 1], "", "Billboard", 1, 10, [0, 0, 0], [0, 0, 0], 1, 1.2, 1, 0.1, [3.5, 3.5], [[0.7, 0.7, 0.7 ,0.4], [0.5, 0.5, 0.5, 0.2], [0.2, 0.2, 0.2, 0]], [0, 1], 1, 0, "", "", SmokeLogic2]; _particleSource_3_1 setDropInterval 0.04; _particleSource_3_2 = "#particlesource" createVehicleLocal getpos SmokeLogic2; _particleSource_3_2 setParticleCircle [0.5, [0.5, 0, 0.5]]; _particleSource_3_2 setParticleRandom [0, [0.3, 0.25, 0], [0.175, 0.175, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0]; _particleSource_3_2 setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 1, 8], "", "Billboard", 1, 12.5, [0, 0, 0], [0, 0, 0.75], 0, 10, 7.9, 0.075, [1.2, 2, 4], [[0.1, 0.1, 0.1, 1], [0.25, 0.25, 0.25, 0.5], [0.5, 0.5, 0.5, 0]], [0.08], 1, 0, "", "", SmokeLogic2]; You also may want to take a look at my burning buildings script, and use it as the basis of what you're attempting to do, just with your own particle effects instead of mine. Hope this helps . Share this post Link to post Share on other sites