ItsMods

Full Version: remove effects created with PlayFX?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Basically, i have an effect I only want to play for a certain amount of time. But, the effect I am using plays infinitely.

for the script I am using, I have this:
Code:
    emissionEnt = getEntArray("mp_global_intermission", "classname");
    up = anglestoup(emissionEnt[0].angles);
    right = anglestoright(emissionEnt[0].angles);
    earthquake(0.25, 10, emissionEnt[0].origin, 100000);
    wait 3;
    PlayFX(level._effect["nuke_aftermath"], emissionEnt[0].origin, up, right);
    wait 5;
    level._effect["nuke_aftermath"] destroy();

but the effect does not stop :/

any ideas as to how I can stop the effect? or is there a different effect I can use?

the map is overgrown

thanks
(01-04-2012, 14:23)xplosiff Wrote: [ -> ]Basically, i have an effect I only want to play for a certain amount of time. But, the effect I am using plays infinitely.

for the script I am using, I have this:
Code:
    emissionEnt = getEntArray("mp_global_intermission", "classname");
    up = anglestoup(emissionEnt[0].angles);
    right = anglestoright(emissionEnt[0].angles);
    earthquake(0.25, 10, emissionEnt[0].origin, 100000);
    wait 3;
    PlayFX(level._effect["nuke_aftermath"], emissionEnt[0].origin, up, right);
    wait 5;
    level._effect["nuke_aftermath"] destroy();

but the effect does not stop :/

any ideas as to how I can stop the effect? or is there a different effect I can use?

the map is overgrown

thanks

Tried this? It works with Play/StopFxOnTag.
StopFX(level._effect["nuke_aftermath"], emissionEnt[0].origin, up, right);
(01-04-2012, 15:02)MuLtiHuN7eR Wrote: [ -> ]
(01-04-2012, 14:23)xplosiff Wrote: [ -> ]Basically, i have an effect I only want to play for a certain amount of time. But, the effect I am using plays infinitely.

for the script I am using, I have this:
Code:
    emissionEnt = getEntArray("mp_global_intermission", "classname");
    up = anglestoup(emissionEnt[0].angles);
    right = anglestoright(emissionEnt[0].angles);
    earthquake(0.25, 10, emissionEnt[0].origin, 100000);
    wait 3;
    PlayFX(level._effect["nuke_aftermath"], emissionEnt[0].origin, up, right);
    wait 5;
    level._effect["nuke_aftermath"] destroy();

but the effect does not stop :/

any ideas as to how I can stop the effect? or is there a different effect I can use?

the map is overgrown

thanks

Tried this? It works with Play/StopFxOnTag.
StopFX(level._effect["nuke_aftermath"], emissionEnt[0].origin, up, right);

unknown function Sad
I never tried this with playfx function, but with spawn one, you can destroy them like this:

Code:
myFX = spawnFX(effect,position);
triggerFX(myFX);
wait time;
myFX delete();