Posts: 29
Threads: 11
Joined: Dec 2011
Reputation:
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
Posts: 10
Threads: 1
Joined: Jan 2011
Reputation:
0
(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);
Posts: 29
Threads: 11
Joined: Dec 2011
Reputation:
1
(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
Posts: 3,535
Threads: 420
Joined: Dec 2010
Reputation:
106
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();
|