Jump to content
Sign in to follow this  
YattaYatta

Cant get rid of smoke effect.

Recommended Posts

Tahnks to twisted and Magicpanda, I could attach smoke to a vehicle.

Now the problem is to turn off that smoke once its not needed anymore.

I tried the following :

- destroying the vehicle (setDamage),

- removing the vehicle (deleteVehicle),

- removing the smoke (deleteVehicle),

- destroying the smoke (setDamage),

- all above, but with detaching the smoke from the vehicule first,

- shouting mean words at the smoke,

- eating chips while scratching my head,

- losing a couple ranked games on LoL.

Nothing seems to kill that damn smoke. To think a couple hours ago I was fighting to create it ...

Share this post


Link to post
Share on other sites

How exactly did you create the smoke? deleteVehicle on the smoke object should be enough.

Share this post


Link to post
Share on other sites

heres what happens when a vehicle cant move anymore :

	_smoke = "test_EmptyObjectForSmoke" createVehicle (position _this);
_smoke attachTo [_this,[0,0.15,0]];
sleep (20 + random (25));

_this setDamage 1;
detach _smoke;
_smoke setDamage 1;
deleteVehicle _smoke;
sleep 75;
deleteVehicle _this;

No more vehicule, but the smoke stays (apparently ad vitam eternam).

Share this post


Link to post
Share on other sites

Could you use hideobject on the smoke and enable simulation false?

Failing that you could move the smoke to 0,0,0 (The corner of the map)

Share this post


Link to post
Share on other sites

I could probably, but Id rather avoid that. Im trying to do a Domination-esque mission, and having dirty remnants piling up could cause bad things.

Share this post


Link to post
Share on other sites

Unfortunately smoke shells effect dont look like like somethings burning.

I guess ill have to wait for an update.

Share this post


Link to post
Share on other sites

Well here is what I did to fix this problem for me.

To create:

_sh = [2779.45,1736.67,143.966];
_col = [204,204,0];
_c1 = _col select 0;
_c2 = _col select 1;
_c3 = _col select 2;

_source = "#particlesource" createVehicleLocal _sh;
_source setposasl _sh;
_source setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal", 16, 7, 48], "", "Billboard", 1, 20, [0,0,0],
			  [0.2, 0.1, 0.1], 0, 1.277, 1, 0.025, [0.1, 2, 6], [[_c1, _c2, _c3, 0.2], [_c1, _c2, _c3, 0.05], [_c1, _c2, _c3, 0]],
                         [1.5,0.5], 1, 0.04, "", "", _sh];
_source setParticleRandom [2, [0, 0, 0], [0,0,0], 0, 0.5, [0, 0, 0, 0.1], 0, 0, 10];
_source setDropInterval 0.03;
_source2 = "#particlesource" createVehicleLocal _sh;
_source2 setposasl _sh;
_source2 setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal", 16, 12, 8, 0], "", "Billboard", 1, 20, [0, 0, 0],
                   	   [0.2, 0.1, 0.1], 0, 1.277, 1, 0.025, [0.1, 2, 6], [[_c1, _c2, _c3, 1], [_c1, _c2, _c3, 0.5], [_c1, _c2, _c3, 0]],
                          [0.2], 1, 0.04, "", "", _sh];
_source2 setParticleRandom [2, [0, 0, 0], [0,0,0], 0, 0.5, [0, 0, 0, 0.2], 0, 0, 360];
_source2 setDropInterval 0.03;
_smokes = [_source,_source2];

Then to delete:

{
deletevehicle _x;
} foreach _smokes;

NOTE: _sh would equal some posasl and _col being the (rgb) color of the smoke. Hope this helps.

~dcthehole

Edited by dcthehole

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×