Results 1 to 10 of 10
  1. #1
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115

    Removing an FX..

    I've asked before, but now I really want it.
    Is there a way to delete an FX?
    Or is there any way of using a self setModel(FXhere); and then self delete();?

  2. #2
    YuDi21's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    mp_complex
    Posts
    141
    Reputation
    12
    Thanks
    35
    My Mood
    Angelic
    if PlayFXonTag( fx );
    ahg,
    StopFxOnTag( fx );
    work)

  3. #3
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Quote Originally Posted by YuDi21 View Post
    if PlayFXonTag( fx );
    ahg,
    StopFxOnTag( fx );
    work)
    No idea what you said there, but I don't mean FxOnTag, I mean the playFX version.

    EDIT:

    FOUND A WAY. SOLVED
    WOOOO
    Last edited by Arasonic; 01-15-2011 at 04:47 PM.

  4. #4
    Boon Pek's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    188
    Reputation
    10
    Thanks
    378
    My Mood
    Inspired
    Tell, please
    My minecraft launcher!

    A full-featured, actively-developed windows-only Minecraft Launcher! It allows you to download older versions of minecraft.jar through the options menu, multi-username support, RAM allocation support, non-legit logins and more!











  5. #5
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    An example:

    Code:
    FX = spawnFx(level.spawnGlow["enemy"], loc );
              TriggerFx( FX );
              self thread deleteOnWait(FX, 2.5);}
         }
    }
    
    deleteOnWait(thing, sec)
    {
        wait sec;
          thing destroy(); //Not sure if this one is needed
     	 thing delete();
    }

  6. The Following 2 Users Say Thank You to Arasonic For This Useful Post:

    Boon Pek (01-16-2011),YuDi21 (01-23-2011)

  7. #6
    Boon Pek's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    188
    Reputation
    10
    Thanks
    378
    My Mood
    Inspired
    Thanks, Arasonic - though I found out already by myself :P

    The destroy(); is not needed as it only applies to HUD elements.
    My minecraft launcher!

    A full-featured, actively-developed windows-only Minecraft Launcher! It allows you to download older versions of minecraft.jar through the options menu, multi-username support, RAM allocation support, non-legit logins and more!











  8. The Following User Says Thank You to Boon Pek For This Useful Post:

    YuDi21 (01-23-2011)

  9. #7
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Hehe, thought so, but had an error yesterday so had it there just in case.
    Quite funny how you found it without my help though, how'd you find it?

  10. #8
    Boon Pek's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    188
    Reputation
    10
    Thanks
    378
    My Mood
    Inspired
    I had a list of CoD4 functions, so I was experimenting with every one of them which seemed acceptable. I tried spawning a FX model, which failed - then I tried playing an FX on the model, which failed again. After numerous tries with several other stuff, I came across SpawnFX() which didn't do anything at all so I tried TriggerFX() with SpawnFX() and it worked
    My minecraft launcher!

    A full-featured, actively-developed windows-only Minecraft Launcher! It allows you to download older versions of minecraft.jar through the options menu, multi-username support, RAM allocation support, non-legit logins and more!











  11. #9
    YuDi21's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    mp_complex
    Posts
    141
    Reputation
    12
    Thanks
    35
    My Mood
    Angelic
    FX_Test()
    {
    self endon("stop_fx");
    for(;
    {
    playFx(fx);
    wait 1;
    }
    }
    stopFx()
    {
    self notify("stop_fx");
    }

  12. #10
    Boon Pek's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    188
    Reputation
    10
    Thanks
    378
    My Mood
    Inspired
    ^ This was supposed to be marked as solved, if you have yet to read the posts above, the OP has already found a solution
    My minecraft launcher!

    A full-featured, actively-developed windows-only Minecraft Launcher! It allows you to download older versions of minecraft.jar through the options menu, multi-username support, RAM allocation support, non-legit logins and more!