Answered Delete an FX

RosticGamer99

Known Member
Messages
15
Points
118
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,304
Points
548
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