Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
remove effects created with PlayFX?
#1
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
Reply

#2
(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);
[Image: sl62pk.png]
Reply

#3
(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
Reply

#4
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();
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with Rain Effects on Maps mitchhacker 5 4,848 10-22-2013, 00:46
Last Post: mitchhacker
  Is it safe exactly when i remove the battery from the laptop? checkitnowa 2 3,154 09-13-2013, 08:15
Last Post: CJGreenLabel
  Help remove timer Dynasty 15 8,292 08-25-2013, 13:56
Last Post: hillbilly
  how to remove commands in the chat ExoGamer* 6 4,436 07-20-2013, 09:24
Last Post: Pozzuh
  Help Remove Death Barriers? Help Please! camxxcore 1 2,558 06-28-2013, 09:38
Last Post: Yamato
  effects CheGuevara 1 2,120 04-07-2013, 10:56
Last Post: Nekochan
  Help threading remove EnVi Sweden Rocks 3 3,260 01-28-2013, 15:26
Last Post: JariZ
  Help Remove Threading/tidyup hillbilly 4 4,581 09-16-2012, 11:09
Last Post: zxz0O0
  [Request] plugin to remove all secondary ammo ALEXFDR 1 2,357 09-08-2012, 23:32
Last Post: Nekochan
  Remove mini map moosa67 2 2,590 08-22-2012, 21:26
Last Post: Nukem

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.