Answered Delete an FX

RosticGamer99

Insane-Known Member
Messages
17
Reaction score
17
Points
368
How do you delete an fx that uses " Playfx ".

I have tried using " fxname delete(); " but does not work, briefly, i am spawning the Tac effect ( lightsabders ) when spawning the fx i use:
Code:
self getTagOrigin("tag_origin")

Tried google, which took me here to xTUL also stating he was unaware:
Code:
http://www.nextgenupdate.com/forums/black-ops-2-gsc-mods-scripts-questions/900004-disabling-playfxontag.html#post6954263

Something that seems so simple is bugging me.
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,332
Reaction score
770
Points
973
You're going to have to switch to spawnFx if you want this to work, no big deal, its not changing anything with the code.
Code:
deletefx()
{
    <fxname> = spawnFx( <fx> , <origin> );
    <fxname> thread Trigger_DeleteFx( <time> );
}

Trigger_DeleteFx( time )
{
    triggerFx(self);
    wait time;
    self delete();
}
 
Top