Answered Delete an FX

Discussion in 'Call of Duty: Black Ops 2 Answered Questions' started by RosticGamer99, Feb 25, 2018.

  1. RosticGamer99

    RosticGamer99 Known Member

    15
    15
    118
    Credits:
    112
    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.
     
  2. candy

    candy G59 Terrorist Donator

    1,265
    831
    398
    Credits:
    7,071
    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();
    }
     
    DF_AUS likes this.

Share This Page