DSabre 2332 Posted September 16, 2018 Anyone good with particles who can help me? I am working on a script that gives visual feedback when hitting another aircraft. I used the rock shower as template https://community.bistudio.com/wiki/ParticleTemplates My plane emits stuff when hit, all fine. The issue I have is it won't stop. I want to make it emit things for 1-2 seconds. not a minute : ( Any ideas? Do I have to make my own emitter thingy to get access to the emitter lifetime - and if so how would that work? Already obsolete : ) Thx to Yax for help Code: Spoiler // in your aircraft config add this to the eventhandlers and use my secretweapons addon, or make your own script-copy and change the path class EventHandlers {dammaged = "[_this select 0] execvm 'sab_secretweapons\scripts\hiteffect.sqf';";}; // make a hpp file and copy/paste the stuff below. call it hiteffect.sqf // ----- Aviation HitEffect script by [Dust]Sabre - free to use, have fun - many thanks to Yax for scripting help ----- private ["_plane","_particles"]; _plane = _this select 0; if !(local _plane) exitwith {}; if (alive _plane) then { if (player in _plane) then {addCamShake [0.5, 0.5, 10]; player vehicleChat "We got hit!";}; _particles = "#particlesource" createVehicleLocal [0,0,0]; _particles attachTo [_plane,[0,0,0]]; _particles setParticleCircle [0, [0, 0, 0]]; _particles setParticleRandom [1, [2, 2, 1], [0.25, 0.25, 0], 0, 0.1, [0, 0, 0, 0], 0, 0]; _particles setParticleParams [["\A3\data_f\ParticleEffects\Shard\shard4.p3d",1,0,1,0], "", "SpaceObject", 1, 10, [0, 0, 0], [0, 0, -2], 1, 10, 0.1, 0.1, [2, 2], [[1, 1, 1 ,1], [1, 1, 1, 1], [1, 1, 1, 1]], [0, 1], 1, 0, "", "", _plane]; _particles setDropInterval 0.1; sleep 1; deleteVehicle _particles; // [_particles] spawn {sleep 1; deleteVehicle (_this # 0);} }; sleep 0.5; Don't mind the particle model. Once it works I will make a nicer one. 1 Share this post Link to post Share on other sites