OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: laggy on 20 Jan 2009, 20:47:03
-
Hello,
I'm working on a script where I use smoke effects coming out of a plane, but the smoke doesn't dissolve the way i want it to. It looks good in the beginning, but when towards the end of the smoke animation the clouds stay sharp and clear before dissapearing. It looks bad. I would like to have the smoke dissolving in the air after let's say 30 sek.
Does anyone know what I'm doing wrong?
Looked at forums, turorials and unPBO'd addons, but couldn't find the solution.
It would be perfect to use the lit fire effect, if it could be uncoded and made bigger.
_source = _this select 0
_count = 0
#loop
? _count > 1000 : exit
_count = _count + 1
drop [["\Ca\Data\ParticleEffects\FireAndSmokeAnim\SmokeAnim.p3d", 8, 5, 0], "", "Billboard", 3, 30 + random 30, [0,0,0], [random 5,random 5,random 5], random 8, 0.1 + random 0.2, 0.1, 1, [30 + random 20, 40 + random 30, 0], [[0, 0, 0 ,0], [1, 1, 1, 1], [1, 1, 1, 1]], [10, 10], 1, 0, "", "", _source];
~ 0.03
goto "loop"
Thanks in advance,
Laggy
-
One of the problems seems to be that you start with transparent cloudlets and make them more opaque over time:
..., [[0, 0, 0 ,0], [1, 1, 1, 1], [1, 1, 1, 1]], [10, 10], 1, 0, "", "", _source];
-
So you might just make the last component of the color array transparent for that smooth dissolve effect you are looking for:
..., [[0, 0, 0 ,0], [1, 1, 1, 1], [1, 1, 1, 1],[1, 1, 1, 0]], [10, 10], 1, 0, "", "", _source];
-
Thanks a bunch, both of you.
Laggy