So I put this code in the initialization field of a trigger:
private _posATL = player modelToWorld [0,10,0];
private _ps1 = "#particlesource" createVehicleLocal _posATL;
_ps1 setParticleParams [
"\A3\Data_F\ParticleEffects\Pstone\Pstone", "", "SpaceObject",
1, 10, [0, 0, 30], [0, 0, -2], 1, 10, 1, 0.2, [2, 2],
[[1, 1, 1 ,1]],
[0, 1], 1, 0, "", "", _ps1];
_ps1 setParticleRandom [0, [10, 10, 0], [0.25, 0.25, 0], 0, 1.5, [0, 0, 0, 0], 0, 0];
_ps1 setDropInterval 0.04;
And the particle effect works.
I got this code from the BI website at this link https://community.bistudio.com/wiki/Particles_Tutorial that talks about particles: More specifically, it's rock shower code.
But here's the problem: I can't delete the effect, either the rock shower or any other effect.
When the trigger activates, the effect starts, but I don't know how to stop it.
I already tried deleting the trigger, and using the example that says on the site mentioned above
deleteVehicle _ps1;
But nothing.. Any ideas?
Thanks in advance!