OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Carroll on 26 Dec 2007, 03:12:41

Title: SOLVED: Drop Command - Smoke Effects
Post by: Carroll on 26 Dec 2007, 03:12:41
I have been looking into making smoke effects & was wondering if somebody could point me to a good Drop Command Tutorial (found one that was supposedly in german using the search but it's link is dead?).

Anyway i also found a piece of script that is supposed to make a smoke effect on a variable named _OBJ, but i'm unsure as to how to call the script or if it would even work - heres what i got sofar;

Quote
GL named _OBJ with - this exec "Smoke.sqs" in init line

;Smoke.sqs
_ps setParticleCircle [0, [0, 0, 0]];
_ps setParticleRandom [0, [0.5, 0.5, 0], [0.2, 0.2, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_ps setParticleParams [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 1, 6], "", "Billboard", 1, 8, [0, 0, 0], [0, 0, 4.5], 0, 10, 7.9, 0.5, [4, 12, 20], [[0.1, 0.1, 0.1, 0.8], [0.25, 0.25, 0.25, 0.5], [0.5, 0.5, 0.5, 0]], [0.125], 1, 0, "", "", _OBJ];
_ps setDropInterval 0.1;

I am trying to simulate a smoking furnace tower btw & any help would be appreciated  :scratch:
Title: Re: Drop Command - Smoke Effects
Post by: Mandoble on 26 Dec 2007, 11:58:55
Check the init.sqf of this mission.
Title: Re: Drop Command - Smoke Effects
Post by: Carroll on 27 Dec 2007, 08:07:17
Thanks Mandoble, exactly what i was after. Though i do wish someone had a comprehensive Tutorial, as i am somewhat new to script building & wish to learn more.

I'm gunna play round with the file & try to get a darker smoke happening
Title: Re: SOLVED: Drop Command - Smoke Effects
Post by: Mandoble on 27 Dec 2007, 13:36:02
For a darker smoke change [[0.2, 0.2, 0.2, 0.5], [0.7, 0.7, 0.7, 0.5], [0.5, 0.5, 0.5, 0]]
This is the color array, it is an array of arrays [R, G, B, A], the particle will start using the first color component and will change through the rest of the components along its life-time set in _particle_life_time. If you want the particle to be black all the time just use [[0,0,0,0.5]].

Same happens with _smoke_sizes, these are the sizes for the particle along its life-time, the particle will change from the first to the last smoothly along _particle_life_time seconds. You may play also with weight and volume parameters to make the particle lighter or heavier so the particle ascends faster or slower. You may speedup the particles going up also with the MoveVelocity vector, for example using [0,0,50] (the particles will go up initially at 50m/s), then the relation weight/volume and the Rubbing (which determines the friction) might make the particle stop and going down again.

The COMREF has a good explanation of every member of the particle array (http://www.ofpec.com/COMREF/arrays.php#ParticleArray)
Title: Re: SOLVED: Drop Command - Smoke Effects
Post by: CharlieReddog on 26 Jan 2008, 01:44:00
How would you get a smoke particle to rise higher?
Title: Re: SOLVED: Drop Command - Smoke Effects
Post by: Mandoble on 26 Jan 2008, 03:06:38
For example, increasing the volume parameter over weight parameter.